diff options
-rwxr-xr-x | rc.d/rc.sysinit | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index af7e65b3..7a6cc96f 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -712,6 +712,17 @@ if [ -x /sbin/hdparm ]; then done fi +# Boot time profiles. Yes, this should be somewhere else. +if grep -q "profile=" /proc/cmdline ; then + cmdline=`cat /proc/cmdline` + for arg in cmdline ; do + if [ "${arg##profile=}" != "${arg}" ]; then + [ -x /usr/sbin/redhat-config-network-cmd ] && + /usr/sbin/redhat-config-network-cmd --profile ${arg##profile-} + fi + done +fi + # Generate a header that defines the boot kernel. /sbin/mkkerneldoth |