[firstboot 07/13] Remove the old init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 init/firstboot |   97 --------------------------------------------------------
 1 files changed, 0 insertions(+), 97 deletions(-)
 delete mode 100755 init/firstboot

diff --git a/init/firstboot b/init/firstboot
deleted file mode 100755
index 29cd9fb..0000000
--- a/init/firstboot
+++ /dev/null
@@ -1,97 +0,0 @@
-#!/bin/bash
-### BEGIN INIT INFO
-# Provides: firstboot
-# Default-Start: 3 5
-# Default-Stop: 0 1 2 4 6
-# Required-Start:
-# Should-Start: $network
-# Short-Description: Starts the firstboot configuration program
-# Description: Firstboot runs the first time a machine is booted after
-#              installation.  It checks for the existance of an
-#              /etc/sysconfig/firstboot file.  If the file exists and
-#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
-#              firstboot will be run.  If /etc/reconfigSys exists or if
-#              "reconfig" is provided in the kernel boot arguments,
-#              firstboot will run in reconfiguration mode.
-### END INIT INFO
-
-#
-# firstboot: Starts the firstboot druid if it hasn't been run before
-#
-# chkconfig: 35 99 95
-#
-# description: Firstboot is a druid style program that runs on the first \
-#              time a machine is booted after install.  It checks for \
-#              the existence of an /etc/sysconfig/firstboot file.  If \
-#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
-#              will not run.  Otherwise, firstboot will be run.  \
-#              If /etc/reconfigSys exists or if "reconfig" is provided \
-#              in the kernel boot arguments, firstboot will run in \
-#              reconfiguration mode.
-#
-
-# Source function library.
-. /etc/init.d/functions
-
-FILENAME=/etc/sysconfig/firstboot
-
-[ -z "$HOME" ] && export HOME=/root
-
-usage() {
-    echo $"Usage: $0 {start|stop}"
-}
-
-case "$1" in
-    start)
-        if [ `/usr/bin/id -u` -ne 0 ]; then
-            echo $"ERROR: Only root can run firstboot"
-            exit 4
-        fi
-
-        if [ ! -f /usr/sbin/firstboot ]; then
-            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
-            exit 5
-        fi
-
-        args=""
-
-        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
-            exit 0
-        fi
-
-        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
-            args="--reconfig"
-        fi
-
-        . /etc/profile.d/lang.sh
-
-        /usr/sbin/firstboot $args
-        RETVAL=$?
-
-        # If firstboot succeeded, chkconfig it off so we don't see the message
-        # every time about starting up firstboot.
-        if [ "$RETVAL" -eq 0 ]; then
-            action "" /bin/true
-            /sbin/chkconfig firstboot off
-            /bin/systemctl disable firstboot-graphical.service firstboot-text.service >/dev/null 2>&1
-        else
-            action "" /bin/false
-        fi
-
-        exit $RETVAL
-        ;;
-
-    stop)
-        exit 0
-        ;;
-
-    restart | reload | force-reload | status | condrestart | try-restart)
-        usage
-        exit 3
-        ;;
-
-    *)
-        usage
-        exit 2
-        ;;
-esac
-- 
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux