From cf8854f0c53afbc7389d60c89e6e5a3dbc52c6f9 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 22 Mar 2013 17:53:08 +0100 Subject: [PATCH] loadmodules: use modules-load.d instead of modules.d for smooth systemd migration --- etc/rc.d/init.d/loadmodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/init.d/loadmodules b/etc/rc.d/init.d/loadmodules index 12381df..a2547d4 100755 --- a/etc/rc.d/init.d/loadmodules +++ b/etc/rc.d/init.d/loadmodules @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2004-2011 Silvan Calarco +# Copyright (C) 2004-2013 Silvan Calarco . /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