FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 04-01-2011, 10:05 AM
Martin Gracik
 
Default Remove the old init

---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org