loadmodules: use modules-load.d instead of modules.d for smooth systemd migration
This commit is contained in:
parent
335299c1c0
commit
cf8854f0c5
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) 2004-2011 Silvan Calarco <silvan.calarco@mambasoft.it>
|
# Copyright (C) 2004-2013 Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
|
|
||||||
. /etc/sysconfig/rc
|
. /etc/sysconfig/rc
|
||||||
. $rc_functions
|
. $rc_functions
|
||||||
@ -17,7 +17,7 @@ module_name=`egrep "^(probeall|alias)( |\t)*on-boot-*( |\t)*" $modulesfile 2>/de
|
|||||||
|
|
||||||
for module in $module_name \
|
for module in $module_name \
|
||||||
`cat /etc/modules 2>/dev/null | grep -v ^#`\
|
`cat /etc/modules 2>/dev/null | grep -v ^#`\
|
||||||
`cat /etc/modules.d/*.conf 2>/dev/null | grep -v ^#`; do
|
`cat /etc/modules-load.d/*.conf 2>/dev/null | grep -v ^#`; do
|
||||||
echo -n "Loading $module module: "
|
echo -n "Loading $module module: "
|
||||||
modprobe $module 2>&1
|
modprobe $module 2>&1
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
|
Loading…
Reference in New Issue
Block a user