From 341fc572a790085f7174227c4a202c379192e323 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 21 Aug 2002 06:05:01 +0000 Subject: activate profile if passed via profile= on the kernel command line --- rc.d/rc.sysinit | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'rc.d/rc.sysinit') 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 -- cgit v1.2.1