From b0b1d8fb0f933b37e5878541e18034614eed47fb Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sat, 28 Jul 2012 01:32:35 +0200 Subject: merge initscripts-systemd This makes sure that systemd supports some initscripts API's. With this patch, systemd will: * Parse and use DAEMONS and MODULES from rc.conf * Run rc.local and rc.local.shutdown on boot and shutdown respectively Signed-off-by: Tom Gundersen --- arch-modules-load | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 arch-modules-load (limited to 'arch-modules-load') diff --git a/arch-modules-load b/arch-modules-load new file mode 100755 index 0000000..e522c2b --- /dev/null +++ b/arch-modules-load @@ -0,0 +1,15 @@ +#!/bin/bash +# +# /usr/lib/systemd/arch-modules-load +# + +. /etc/rc.conf + +# generate list of modules to be loaded by systemd-module-load in /run/modules-load.d/ +if [[ $MODULES ]]; then + mkdir /run/modules-load.d + echo "# Autogenerated by /usr/lib/systemd/arch-modules-load" > /run/modules-load.d/rc.conf + printf '%s\n' "${MODULES[@]}" >> /run/modules-load.d/rc.conf +fi + +# vim: set noet ts=2 sw=2: -- cgit v1.2.3