aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-05-22 16:08:31 +0000
committerBill Nottingham <notting@redhat.com>2003-05-22 16:08:31 +0000
commit4a689b58aa9d5b7c3d20ccd02af6841226626aba (patch)
treee931017b247944a0435290cb0c531401a2d2a228 /rc.d
parentf2a4ab655a971b9682c6af22fd84afb477a0e780 (diff)
downloadinitscripts-4a689b58aa9d5b7c3d20ccd02af6841226626aba.tar
initscripts-4a689b58aa9d5b7c3d20ccd02af6841226626aba.tar.gz
initscripts-4a689b58aa9d5b7c3d20ccd02af6841226626aba.tar.bz2
initscripts-4a689b58aa9d5b7c3d20ccd02af6841226626aba.tar.xz
initscripts-4a689b58aa9d5b7c3d20ccd02af6841226626aba.zip
add a 'nogui'
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index d07a2bb0..080d6246 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -24,7 +24,7 @@ fi
. /etc/init.d/functions
# Start the graphical boot, if necessary
-if [ "$BOOTUP" = "color" -a "$GRAPHICAL" = "yes" -a -x /usr/bin/rhgb ]; then
+if ! fgrep -q nogui /proc/cmdline && [ "$BOOTUP" = "color" -a "$GRAPHICAL" = "yes" -a -x /usr/bin/rhgb ]; then
/usr/bin/rhgb
fi