aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-08-21 06:05:01 +0000
committerBill Nottingham <notting@redhat.com>2002-08-21 06:05:01 +0000
commit341fc572a790085f7174227c4a202c379192e323 (patch)
tree6410f03cb39603b5a3bbeb91706d6d91521eeb65 /rc.d
parent976cd071e20a5cc4ae55f3ca6a796a6d857b82fe (diff)
downloadinitscripts-341fc572a790085f7174227c4a202c379192e323.tar
initscripts-341fc572a790085f7174227c4a202c379192e323.tar.gz
initscripts-341fc572a790085f7174227c4a202c379192e323.tar.bz2
initscripts-341fc572a790085f7174227c4a202c379192e323.tar.xz
initscripts-341fc572a790085f7174227c4a202c379192e323.zip
activate profile if passed via profile= on the kernel command line
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit11
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