Im zuge des updates nicht mehr benötigte Scripten
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5504 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
061ddf553e
commit
dde10bf78f
|
@ -1,28 +0,0 @@
|
||||||
# rc - runlevel compatibility
|
|
||||||
#
|
|
||||||
# This task guesses what the "default runlevel" should be and starts the
|
|
||||||
# appropriate script.
|
|
||||||
|
|
||||||
start on started syslogd
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console logged
|
|
||||||
|
|
||||||
script
|
|
||||||
echo "Starting rc-default script"
|
|
||||||
/sbin/runlevel --reboot || true
|
|
||||||
|
|
||||||
if grep -q -w -- "-s\|single\|S" /proc/cmdline; then
|
|
||||||
/sbin/telinit S
|
|
||||||
elif [ -r /etc/inittab ]; then
|
|
||||||
RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
|
|
||||||
if [ -n "$RL" ]; then
|
|
||||||
/sbin/telinit $RL
|
|
||||||
else
|
|
||||||
/sbin/telinit 2
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
/sbin/telinit 2
|
|
||||||
fi
|
|
||||||
end script
|
|
25
etc/init/rc0
25
etc/init/rc0
|
@ -1,25 +0,0 @@
|
||||||
# rc0 - runlevel 0 compatibility
|
|
||||||
#
|
|
||||||
# This task runs the old sysv-rc runlevel 0 ("halt/poweroff") scripts with
|
|
||||||
# the decision as to whether to halt or power off the system left up to the
|
|
||||||
# script (and thus /etc/default/poweroff).
|
|
||||||
|
|
||||||
start on runlevel 0
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console output
|
|
||||||
script
|
|
||||||
set $(runlevel || true)
|
|
||||||
if [ "$2" != "0" ] && [ "$2" != "6" ]; then
|
|
||||||
set $(runlevel --set 0 || true)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$1" != "unknown" ]; then
|
|
||||||
PREVLEVEL=$1
|
|
||||||
RUNLEVEL=$2
|
|
||||||
export PREVLEVEL RUNLEVEL
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec /etc/init.d/rc 0
|
|
||||||
end script
|
|
19
etc/init/rc1
19
etc/init/rc1
|
@ -1,19 +0,0 @@
|
||||||
# rc1 - runlevel 1 compatibility
|
|
||||||
#
|
|
||||||
# This task runs the old sysv-rc runlevel 1 ("single-user") scripts.
|
|
||||||
|
|
||||||
start on runlevel 1
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console output
|
|
||||||
script
|
|
||||||
set $(runlevel --set 1 || true)
|
|
||||||
if [ "$1" != "unknown" ]; then
|
|
||||||
PREVLEVEL=$1
|
|
||||||
RUNLEVEL=$2
|
|
||||||
export PREVLEVEL RUNLEVEL
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec /etc/init.d/rc 1
|
|
||||||
end script
|
|
20
etc/init/rc2
20
etc/init/rc2
|
@ -1,20 +0,0 @@
|
||||||
# rc2 - runlevel 2 compatibility
|
|
||||||
#
|
|
||||||
# This task runs the old sysv-rc runlevel 2 ("multi-user") scripts. It
|
|
||||||
# is usually started by the telinit compatibility wrapper.
|
|
||||||
|
|
||||||
start on runlevel 2
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console output
|
|
||||||
script
|
|
||||||
set $(runlevel --set 2 || true)
|
|
||||||
if [ "$1" != "unknown" ]; then
|
|
||||||
PREVLEVEL=$1
|
|
||||||
RUNLEVEL=$2
|
|
||||||
export PREVLEVEL RUNLEVEL
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec /etc/init.d/rc 2
|
|
||||||
end script
|
|
20
etc/init/rc3
20
etc/init/rc3
|
@ -1,20 +0,0 @@
|
||||||
# rc3 - runlevel 3 compatibility
|
|
||||||
#
|
|
||||||
# This task runs the old sysv-rc runlevel 3 (user defined) scripts. It
|
|
||||||
# is usually started by the telinit compatibility wrapper.
|
|
||||||
|
|
||||||
start on runlevel 3
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console output
|
|
||||||
script
|
|
||||||
set $(runlevel --set 3 || true)
|
|
||||||
if [ "$1" != "unknown" ]; then
|
|
||||||
PREVLEVEL=$1
|
|
||||||
RUNLEVEL=$2
|
|
||||||
export PREVLEVEL RUNLEVEL
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec /etc/init.d/rc 3
|
|
||||||
end script
|
|
20
etc/init/rc4
20
etc/init/rc4
|
@ -1,20 +0,0 @@
|
||||||
# rc3 - runlevel 3 compatibility
|
|
||||||
#
|
|
||||||
# This task runs the old sysv-rc runlevel 3 (user defined) scripts. It
|
|
||||||
# is usually started by the telinit compatibility wrapper.
|
|
||||||
|
|
||||||
start on runlevel 4
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console output
|
|
||||||
script
|
|
||||||
set $(runlevel --set 4 || true)
|
|
||||||
if [ "$1" != "unknown" ]; then
|
|
||||||
PREVLEVEL=$1
|
|
||||||
RUNLEVEL=$2
|
|
||||||
export PREVLEVEL RUNLEVEL
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec /etc/init.d/rc 4
|
|
||||||
end script
|
|
20
etc/init/rc5
20
etc/init/rc5
|
@ -1,20 +0,0 @@
|
||||||
# rc5 - runlevel 5 compatibility
|
|
||||||
#
|
|
||||||
# This task runs the old sysv-rc runlevel 5 (user defined) scripts. It
|
|
||||||
# is usually started by the telinit compatibility wrapper.
|
|
||||||
|
|
||||||
start on runlevel 5
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console output
|
|
||||||
script
|
|
||||||
set $(runlevel --set 5 || true)
|
|
||||||
if [ "$1" != "unknown" ]; then
|
|
||||||
PREVLEVEL=$1
|
|
||||||
RUNLEVEL=$2
|
|
||||||
export PREVLEVEL RUNLEVEL
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec /etc/init.d/rc 5
|
|
||||||
end script
|
|
23
etc/init/rc6
23
etc/init/rc6
|
@ -1,23 +0,0 @@
|
||||||
# rc6 - runlevel 6 compatibility
|
|
||||||
#
|
|
||||||
# This task runs the old sysv-rc runlevel 6 ("reboot") scripts.
|
|
||||||
|
|
||||||
start on runlevel 6
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console output
|
|
||||||
script
|
|
||||||
set $(runlevel || true)
|
|
||||||
if [ "$2" != "0" ] && [ "$2" != "6" ]; then
|
|
||||||
set $(runlevel --set 6 || true)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$1" != "unknown" ]; then
|
|
||||||
PREVLEVEL=$1
|
|
||||||
RUNLEVEL=$2
|
|
||||||
export PREVLEVEL RUNLEVEL
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec /etc/init.d/rc 6
|
|
||||||
end script
|
|
|
@ -1,25 +0,0 @@
|
||||||
# rcS-sulogin - "single-user" runlevel compatibility
|
|
||||||
#
|
|
||||||
# This task runs the sulogin binary during "single-user" mode.
|
|
||||||
|
|
||||||
start on runlevel S
|
|
||||||
|
|
||||||
stop on runlevel
|
|
||||||
|
|
||||||
console owner
|
|
||||||
|
|
||||||
script
|
|
||||||
runlevel --set S >/dev/null || true
|
|
||||||
/sbin/sulogin
|
|
||||||
|
|
||||||
if [ -r /etc/inittab ]; then
|
|
||||||
RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
|
|
||||||
if [ -n "$RL" ]; then
|
|
||||||
telinit $RL
|
|
||||||
else
|
|
||||||
telinit 2
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
telinit 2
|
|
||||||
fi
|
|
||||||
end script
|
|
Loading…
Reference in New Issue
Block a user