summaryrefslogtreecommitdiff
path: root/arch-modules-load
blob: e522c2bb13bdbadeea8a270ece54d3a114721d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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: