aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-10-28 20:16:00 +0000
committerColin Guthrie <colin@mageia.org>2012-10-28 20:16:00 +0000
commit5b2ce4ba3ff6cf5d7df7f5760107ff2f3e7dbe6f (patch)
treeec8a31bfe3ca67db6c5f31e1e34e59708fdfe557 /rc.d/rc
parent35326f41a29186a00331117c4419a904c6563c7c (diff)
parentbf95e22c4164b82112d043169495a71d1bfa0068 (diff)
downloadinitscripts-5b2ce4ba3ff6cf5d7df7f5760107ff2f3e7dbe6f.tar
initscripts-5b2ce4ba3ff6cf5d7df7f5760107ff2f3e7dbe6f.tar.gz
initscripts-5b2ce4ba3ff6cf5d7df7f5760107ff2f3e7dbe6f.tar.bz2
initscripts-5b2ce4ba3ff6cf5d7df7f5760107ff2f3e7dbe6f.tar.xz
initscripts-5b2ce4ba3ff6cf5d7df7f5760107ff2f3e7dbe6f.zip
Merge tag 'initscripts-9.41-1' into mga-41
Tag as initscripts-9.41-1 Conflicts: .gitignore Makefile inittab po/xgettext_sh.py prefdm rc.d/init.d/functions rc.d/init.d/halt rc.d/init.d/killall rc.d/init.d/netfs rc.d/init.d/network rc.d/init.d/single rc.d/rc rc.d/rc.local rc.d/rc.sysinit service src/console_check.c src/console_init.c sysconfig.txt sysconfig/network-scripts/ifdown sysconfig/network-scripts/ifdown-eth sysconfig/network-scripts/ifup sysconfig/network-scripts/ifup-eth sysconfig/network-scripts/ifup-ippp sysconfig/network-scripts/network-functions systemd/system/fedora-wait-storage.service udev/rules.d/10-console.rules Merge Notes: 1. prefdm: We are keeping the current prefdm script which parses /etc/sysconfig/desktop to find the current preferred dm. We also keep the hunk in sysconfig.txt which relates to the afore mentioned file. Longer term, we should drop this and move to per-dm units. 2. sysconfig/network-scripts/ifup-ippp is still removed at our end... is there a replacement? 3. I used our /sbin/service as it varies quite a lot from fedora. I'd be tempted to drop our custom version in favour of upstream (s/libexec/lib/) 4. ifup/ifdown NM wrappers have been included - previously we just printed a "Device is manged by NM skipping.." message. CONFLICT (modify/delete): udev/rules.d/10-console.rules deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of udev/rules.d/10-console.rules left in tree. Auto-merging systemd/system/fedora-wait-storage.service CONFLICT (content): Merge conflict in systemd/system/fedora-wait-storage.service Auto-merging systemd/fedora-storage-init Auto-merging sysconfig/network-scripts/network-functions CONFLICT (content): Merge conflict in sysconfig/network-scripts/network-functions Removing sysconfig/network-scripts/net.hotplug Auto-merging sysconfig/network-scripts/ifup-sit Auto-merging sysconfig/network-scripts/ifup-post Auto-merging sysconfig/network-scripts/ifup-plusb CONFLICT (modify/delete): sysconfig/network-scripts/ifup-ippp deleted in HEAD and modified in initscripts-9.41-1. Version initscripts-9.41-1 of sysconfig/network-scripts/ifup-ippp left in tree. Auto-merging sysconfig/network-scripts/ifup-eth CONFLICT (content): Merge conflict in sysconfig/network-scripts/ifup-eth Auto-merging sysconfig/network-scripts/ifup CONFLICT (content): Merge conflict in sysconfig/network-scripts/ifup Auto-merging sysconfig/network-scripts/ifdown-sit Auto-merging sysconfig/network-scripts/ifdown-post Auto-merging sysconfig/network-scripts/ifdown-eth CONFLICT (content): Merge conflict in sysconfig/network-scripts/ifdown-eth Auto-merging sysconfig/network-scripts/ifdown CONFLICT (content): Merge conflict in sysconfig/network-scripts/ifdown Auto-merging sysconfig.txt CONFLICT (content): Merge conflict in sysconfig.txt Removing src/testdinit Removing src/testd.c Removing src/securetty.c Removing src/securetty.8 Removing src/getkey.c Removing src/getkey.1 Removing src/fstab-decode.c Removing src/fstab-decode.8 CONFLICT (modify/delete): src/console_init.c deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of src/console_init.c left in tree. CONFLICT (modify/delete): src/console_check.c deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of src/console_check.c left in tree. Auto-merging service CONFLICT (content): Merge conflict in service CONFLICT (modify/delete): rc.d/rc.sysinit deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of rc.d/rc.sysinit left in tree. CONFLICT (modify/delete): rc.d/rc.local deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of rc.d/rc.local left in tree. CONFLICT (modify/delete): rc.d/rc deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of rc.d/rc left in tree. CONFLICT (modify/delete): rc.d/init.d/single deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of rc.d/init.d/single left in tree. Auto-merging rc.d/init.d/network CONFLICT (content): Merge conflict in rc.d/init.d/network CONFLICT (modify/delete): rc.d/init.d/netfs deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of rc.d/init.d/netfs left in tree. Auto-merging rc.d/init.d/netconsole CONFLICT (modify/delete): rc.d/init.d/killall deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of rc.d/init.d/killall left in tree. CONFLICT (modify/delete): rc.d/init.d/halt deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of rc.d/init.d/halt left in tree. Auto-merging rc.d/init.d/functions CONFLICT (content): Merge conflict in rc.d/init.d/functions CONFLICT (modify/delete): prefdm deleted in initscripts-9.41-1 and modified in HEAD. Version HEAD of prefdm left in tree. Auto-merging ppp/ip-up.ipv6to4 CONFLICT (modify/delete): po/xgettext_sh.py deleted in HEAD and modified in initscripts-9.41-1. Version initscripts-9.41-1 of po/xgettext_sh.py left in tree. Removing inittab.upstart Removing inittab.systemd Removing inittab.s390 Auto-merging inittab CONFLICT (content): Merge conflict in inittab Removing init/tty.conf Removing init/start-ttys.conf Removing init/splash-manager.conf Removing init/serial.conf Removing init/rcS.conf Removing init/rcS-sulogin.conf Removing init/rc.conf Removing init/quit-plymouth.conf Removing init/prefdm.conf Removing init/plymouth-shutdown.conf Removing init/control-alt-delete.conf Removing crypttab.5 Removing README-init Removing NetworkManager/dispatcher.d/05-netfs Auto-merging Makefile CONFLICT (content): Merge conflict in Makefile Auto-merging .gitignore CONFLICT (content): Merge conflict in .gitignore Automatic merge failed; fix conflicts and then commit the result.
Diffstat (limited to 'rc.d/rc')
-rwxr-xr-xrc.d/rc150
1 files changed, 0 insertions, 150 deletions
diff --git a/rc.d/rc b/rc.d/rc
deleted file mode 100755
index a21e4fb2..00000000
--- a/rc.d/rc
+++ /dev/null
@@ -1,150 +0,0 @@
-#! /bin/bash
-#
-# rc This file is responsible for starting/stopping
-# services when the runlevel changes.
-#
-# Original Author:
-# Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
-#
-
-set -m
-
-# check a file to be a correct runlevel script
-check_runlevel ()
-{
- # Check if the file exists at all.
- [ -x "$1" ] || return 1
- is_ignored_file "$1" && return 1
- return 0
-}
-
-# Now find out what the current and what the previous runlevel are.
-argv1="$1"
-set $(/sbin/runlevel)
-runlevel=$2
-previous=$1
-export runlevel previous
-
-# Get first argument. Set new runlevel to this argument.
-if [ "$argv1" != "" ] ; then
- newrunlevel="$argv1"
-else
- newrunlevel="$runlevel"
-fi
-
-if [ "$previous" = "N" ];then
- if [ -e /var/run/failsafe ];then
- rm -f /var/run/failsafe
- if [ -x /sbin/askrunlevel ];then
- /sbin/askrunlevel --interactive && ASKRUNLEVEL=no
- else
- init 1 #jump to init 1 if not aksrunlevel.
- fi
- fi
-fi
-
-. /etc/init.d/functions
-
-export CONSOLETYPE
-do_confirm="no"
-if [ -f /var/run/confirm ]; then
- do_confirm="yes"
-fi
-UPSTART=
-[ -x /sbin/initctl ] && UPSTART=yes
-# See if we want to be in user confirmation mode
-if [ "$previous" = "N" ]; then
- if [ "$do_confirm" = "yes" ]; then
- gprintf "Entering interactive startup\n"
- else
- gprintf "Entering non-interactive startup\n"
- fi
-elif [[ "$newrunlevel" = "0" || "$newrunlevel" = "6" ]]; then
- [ -x /etc/rc.d/init.d/dm -a -f /var/lock/subsys/dm ] && /etc/init.d/dm stop 2> /dev/null
- chvt --userwait 1
- exec &> /dev/console
-fi
-
-# Get first argument. Set new runlevel to this argument.
-[ -n "$argv1" ] && runlevel="$argv1"
-
-# Is there an rc directory for this new runlevel?
-[ -d /etc/rc$runlevel.d ] || exit 0
-
-# Set language, vc settings once to avoid doing it for every init script
-# through functions
-if [ -z "${NOLOCALE:-}" ] && [ -f /etc/sysconfig/i18n -o -f /etc/locale.conf ] ; then
- . /etc/profile.d/10lang.sh 2>/dev/null
- export LANGSH_SOURCED=1
-fi
-
-initsplash
-[[ "$newrunlevel" = "0" || "$newrunlevel" = "6" ]] && [ "$splash_mode" = "plymouth" ] && rc_splash start $newrunlevel
-
-nopinit=`grep nopinit /proc/cmdline`
-
-rc_mode=K
-export rc_mode
-
-# First, run the KILL scripts.
-if [ -z "$nopinit" ]; then
- /sbin/prcsys K /etc/rc$runlevel.d/
-else
- for i in /etc/rc$runlevel.d/K* ; do
-
- # Check if the subsystem is already up.
- subsys=${i#/etc/rc$runlevel.d/K??}
- [ -f /var/lock/subsys/$subsys ] || [ -f /var/lock/subsys/$subsys.init ] || continue
- check_runlevel "$i" || continue
-
- update_boot_stage "$subsys"
- # Bring the subsystem down.
- [ -n "$UPSTART" ] && initctl emit --quiet stopping JOB=$subsys
- action "Stopping %s: " $subsys $i stop
- [ -n "$UPSTART" ] && initctl emit --quiet stopped JOB=$subsys
- done
-fi
-
-rc_mode=S
-
-if [ -z "$nopinit" ] && [ "$do_confirm" != "yes" -a "$runlevel" != "0" -a "$runlevel" != "1" -a "$runlevel" != "6" ]; then
- /sbin/prcsys S /etc/rc$runlevel.d/
-else
- # Now run the START scripts.
- for i in /etc/rc$runlevel.d/S* ; do
-
- # Check if the subsystem is already up.
- subsys=${i#/etc/rc$runlevel.d/S??}
- [ -f /var/lock/subsys/$subsys ] && continue
- [ -f /var/lock/subsys/$subsys.init ] && continue
- check_runlevel "$i" || continue
-
- # If we're in confirmation mode, get user confirmation
- if [ "$do_confirm" = "yes" ]; then
- confirm $subsys
- rc=$?
- if [ "$rc" = "1" ]; then
- continue
- elif [ "$rc" = "2" ]; then
- do_confirm="no"
- fi
- fi
-
- update_boot_stage "$subsys"
- # Bring the subsystem up.
- [ -n "$UPSTART" ] && initctl emit --quiet starting JOB=$subsys
- if [ "$subsys" = "halt" -o "$subsys" = "reboot" ]; then
- export LC_ALL=C
- exec $i start
- fi
- action "Starting %s: " $subsys $i start
- [ -n "$UPSTART" ] && initctl emit --quiet started JOB=$subsys
-
- done
-fi
-
-if [[ "$newrunlevel" != "0" && "$newrunlevel" != "6" && "$newrunlevel" != "S" && "$newrunlevel" != "5" ]]; then
- rc_splash stop
-fi
-[ "$do_confirm" = "yes" ] && rm -f /var/run/confirm
-exit 0