From: Harald Hoyer Date: Fri, 24 Jul 2009 08:42:39 +0000 (+0200) Subject: removed all direct references to /proc/cmdline X-Git-Tag: 0.7~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e6d2b31ea16ca2ba0e6dcef1d9869a3d03fc7b1;p=thirdparty%2Fdracut.git removed all direct references to /proc/cmdline use getarg() and getargs() from /lib/dracut-lib.sh instead of reinventing the wheel --- diff --git a/modules.d/40network/ifup b/modules.d/40network/ifup index 045085596..37b78cd7e 100755 --- a/modules.d/40network/ifup +++ b/modules.d/40network/ifup @@ -100,10 +100,8 @@ ip=$(getarg ip) # Specific configuration, spin through the kernel command line # looking for ip= lines -[ "$CMDLINE" ] || read CMDLINE /dev/null ; then - [ "$CMDLINE" ] || read CMDLINE < /proc/cmdline - for p in $CMDLINE; do - [ -n "${p%rdblacklist=*}" ] && continue - - echo "blacklist ${p#rdblacklist=}" >> /etc/modprobe.d/initramfsblacklist.conf - done -fi +for p in $(getargs rdblacklist=); do + echo "blacklist $p" >> /etc/modprobe.d/initramfsblacklist.conf +done