summaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/other/modules/up
blob: 3983ae10c51eede99f6830fb64aeb9c39ce37935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!@shebangdir@/execlineb -P

# ISC license.

fdmove -c 2 1

define MODULE_CONF /etc/modules-load.d

elglob -0sd'' FILES ${MODULE_CONF}/*
if -x0 { eltest ${FILES} }
define -sd'' SPLITFILES ${FILES}
pipeline { cat ${SPLITFILES} }
pipeline {
	sed
		-e "/^#/d"
		-e "s/^[\ \t]*//g"
		-e "s/[\ \t]*$//g"
		-e "/^$/d"
}
forstdin -pE MODULE
	modprobe -ab ${MODULE}