loadmodules: use modules-load.d instead of modules.d for smooth systemd migration

This commit is contained in:
Silvan Calarco 2013-03-22 17:53:08 +01:00
parent 335299c1c0
commit cf8854f0c5

View File

@ -1,5 +1,5 @@
#!/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
. $rc_functions
@ -17,7 +17,7 @@ module_name=`egrep "^(probeall|alias)( |\t)*on-boot-*( |\t)*" $modulesfile 2>/de
for module in $module_name \
`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: "
modprobe $module 2>&1
evaluate_retval