aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/functions4
-rwxr-xr-xrc.d/rc11
-rwxr-xr-xrc.d/rc.sysinit18
-rw-r--r--sysconfig/init2
4 files changed, 3 insertions, 32 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index fed1fafa..09f47f37 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -459,10 +459,8 @@ echo_warning() {
# Inform the graphical boot of our current state
update_boot_stage() {
- if [ "$GRAPHICAL" = "yes" ]; then
- if [ -x /usr/bin/rhgb-client ]; then
+ if [ -x /usr/bin/rhgb-client ]; then
/usr/bin/rhgb-client --update="$1"
- fi
fi
return 0
}
diff --git a/rc.d/rc b/rc.d/rc
index 0d1abd12..a75536a8 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -28,11 +28,6 @@ export runlevel previous
. /etc/init.d/functions
export CONSOLETYPE
-cmdline=$(cat /proc/cmdline)
-if ! strstr "$cmdline" rhgb; then
- GRAPHICAL="no"
- export GRAPHICAL
-fi
do_confirm="no"
if [ -f /var/run/confirm ]; then
do_confirm="yes"
@@ -108,8 +103,6 @@ for i in /etc/rc$runlevel.d/S* ; do
[ -n "$UPSTART" ] && initctl emit --quiet "started $subsys"
done
[ "$do_confirm" = "yes" ] && rm -f /var/run/confirm
-if [ "$GRAPHICAL" = "yes" ]; then
- if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
- /usr/bin/rhgb-client --quit
- fi
+if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
+ /usr/bin/rhgb-client --quit
fi
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 2a0f61bc..7dcf5c39 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -301,17 +301,6 @@ if [ -f /etc/rc.modules ]; then
/etc/rc.modules
fi
-# Start the graphical boot, if necessary; /usr may not be mounted yet, so we
-# may have to do this again after mounting
-RHGB_STARTED=
-mount -n /dev/pts >/dev/null 2>&1
-[ -n "$SELINUX_STATE" ] && restorecon /dev/pts >/dev/null 2>&1
-
-if strstr "$cmdline" rhgb && ! strstr "$cmdline" early-login && [ "$BOOTUP" = "color" -a "$GRAPHICAL" = "yes" -a -x /usr/bin/rhgb ]; then
- ( . /etc/sysconfig/i18n 2>/dev/null ; /usr/bin/rhgb )
- RHGB_STARTED=1
-fi
-
# Configure kernel parameters
update_boot_stage RCkernelparam
sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
@@ -674,13 +663,6 @@ else
fi
fi
-
-# Start the graphical boot, if necessary and not done yet.
-if strstr "$cmdline" rhgb && ! strstr "$cmdline" early-login && [ -z "$RHGB_STARTED" -a "$BOOTUP" = "color" -a "$GRAPHICAL" = "yes" -a -x /usr/bin/rhgb ]; then
- ( . /etc/sysconfig/i18n 2>/dev/null ; /usr/bin/rhgb )
- RHGB_STARTED=1
-fi
-
# Initialize pseudo-random number generator
if [ -f "/var/lib/random-seed" ]; then
cat /var/lib/random-seed > /dev/urandom
diff --git a/sysconfig/init b/sysconfig/init
index 117b6bc6..5ccec5e6 100644
--- a/sysconfig/init
+++ b/sysconfig/init
@@ -2,8 +2,6 @@
# verbose => old-style bootup
# anything else => new style bootup without ANSI colors or positioning
BOOTUP=color
-# Turn on graphical boot
-GRAPHICAL=yes
# column to start "[ OK ]" label in
RES_COL=60
# terminal sequence to move to that column. You could change this