diff options
Diffstat (limited to 'arch-modules-load')
-rwxr-xr-x | arch-modules-load | 15 |
1 files changed, 15 insertions, 0 deletions
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: |