diff options
author | Felix Domke <tmbinc@elitedvb.ne> | 2006-08-09 13:23:26 +0000 |
---|---|---|
committer | Felix Domke <tmbinc@elitedvb.ne> | 2006-08-09 13:23:26 +0000 |
commit | 5621c9c4b3bd198a47b5b3210deea2015d8a227d (patch) | |
tree | a42491e31404943f0f3701dc61a43ccbdaa74a00 /packages/sysvinit/sysvinit | |
parent | 8234fcc96b0ad9ee2fc29eff2054412bb78a4b97 (diff) | |
parent | 136954e1061fe2160508b7ea214d0fdb7c06f0cd (diff) | |
download | openembedded-5621c9c4b3bd198a47b5b3210deea2015d8a227d.tar.gz |
merge of '717b91542897124c8b4223fbacd82af0aaecf154'
and '784476b7ee644d2f1f6476d2934f6125cbe3b90a'
Diffstat (limited to 'packages/sysvinit/sysvinit')
-rw-r--r-- | packages/sysvinit/sysvinit/dm7020/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit/dm7020/inittab | 33 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit/dm7025/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit/dm7025/inittab | 33 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit/opendreambox/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit/opendreambox/rcS | 114 |
6 files changed, 180 insertions, 0 deletions
diff --git a/packages/sysvinit/sysvinit/dm7020/.mtn2git_empty b/packages/sysvinit/sysvinit/dm7020/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/sysvinit/sysvinit/dm7020/.mtn2git_empty diff --git a/packages/sysvinit/sysvinit/dm7020/inittab b/packages/sysvinit/sysvinit/dm7020/inittab new file mode 100644 index 0000000000..54c2e76c3b --- /dev/null +++ b/packages/sysvinit/sysvinit/dm7020/inittab @@ -0,0 +1,33 @@ +# /etc/inittab: init(8) configuration. +# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ + +# The default runlevel. +id:2:initdefault: + +# Boot-time system configuration/initialization script. +# This is run first except when booting in emergency (-b) mode. +si::sysinit:/etc/init.d/rcS + +# What to do in single-user mode. +~~:S:wait:/sbin/sulogin + +# /etc/init.d executes the S and K scripts upon change +# of runlevel. +# +# Runlevel 0 is halt. +# Runlevel 1 is single-user. +# Runlevels 2-5 are multi-user. +# Runlevel 6 is reboot. + +l0:0:wait:/etc/init.d/rc 0 +l1:1:wait:/etc/init.d/rc 1 +l2:2:wait:/etc/init.d/rc 2 +l3:3:wait:/etc/init.d/rc 3 +l4:4:wait:/etc/init.d/rc 4 +l5:5:wait:/etc/init.d/rc 5 +l6:6:wait:/etc/init.d/rc 6 +# Normally not reached, but fallthrough in case of emergency. +z6:6:respawn:/sbin/sulogin + +S:5:respawn:/sbin/getty ttyS0 115200 + diff --git a/packages/sysvinit/sysvinit/dm7025/.mtn2git_empty b/packages/sysvinit/sysvinit/dm7025/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/sysvinit/sysvinit/dm7025/.mtn2git_empty diff --git a/packages/sysvinit/sysvinit/dm7025/inittab b/packages/sysvinit/sysvinit/dm7025/inittab new file mode 100644 index 0000000000..d424332906 --- /dev/null +++ b/packages/sysvinit/sysvinit/dm7025/inittab @@ -0,0 +1,33 @@ +# /etc/inittab: init(8) configuration. +# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ + +# The default runlevel. +id:3:initdefault: + +# Boot-time system configuration/initialization script. +# This is run first except when booting in emergency (-b) mode. +si::sysinit:/etc/init.d/rcS + +# What to do in single-user mode. +~~:S:wait:/sbin/sulogin + +# /etc/init.d executes the S and K scripts upon change +# of runlevel. +# +# Runlevel 0 is halt. +# Runlevel 1 is single-user. +# Runlevels 2-5 are multi-user. +# Runlevel 6 is reboot. + +l0:0:wait:/etc/init.d/rc 0 +l1:1:wait:/etc/init.d/rc 1 +l2:2:wait:/etc/init.d/rc 2 +l3:3:wait:/etc/init.d/rc 3 +l4:4:wait:/etc/init.d/rc 4 +l5:5:wait:/etc/init.d/rc 5 +l6:6:wait:/etc/init.d/rc 6 +# Normally not reached, but fallthrough in case of emergency. +z6:6:respawn:/sbin/sulogin + +S:5:respawn:/sbin/getty ttyS0 115200 + diff --git a/packages/sysvinit/sysvinit/opendreambox/.mtn2git_empty b/packages/sysvinit/sysvinit/opendreambox/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/sysvinit/sysvinit/opendreambox/.mtn2git_empty diff --git a/packages/sysvinit/sysvinit/opendreambox/rcS b/packages/sysvinit/sysvinit/opendreambox/rcS new file mode 100644 index 0000000000..3734a6b1a1 --- /dev/null +++ b/packages/sysvinit/sysvinit/opendreambox/rcS @@ -0,0 +1,114 @@ +#!/bin/sh +# +# rcS Call all S??* scripts in /etc/rcS.d in +# numerical/alphabetical order. +# +# Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 miquels@cistron.nl +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +runlevel=S +prevlevel=N +umask 022 +export PATH runlevel prevlevel + +# Make sure proc is mounted +# +[ -d "/proc/1" ] || mount /proc + +# +# See if system needs to be setup. This is ONLY meant to +# be used for the initial setup after a fresh installation! +# +if [ -x /sbin/unconfigured.sh ] +then + /sbin/unconfigured.sh +fi + +# +# Source defaults. +# +. /etc/default/rcS + +# +# Trap CTRL-C &c only in this shell so we can interrupt subprocesses. +# +trap ":" INT QUIT TSTP + +# +# Do we have /proc/progress and set VERBOSE to "no" ? +# If so, calculate the number of scripts and the incremental step +# + +# HACK: progress needs LCD to create /proc device entry +modprobe lcd + +if [ "$VERBOSE" = no ]; then + if [ -e /proc/progress ]; then + set `ls -1 /etc/rc$runlevel.d/S* | wc` + numscripts=$1 + PROGRESS_incstep=`expr 90 / $1` + PROGRESS_value=10 + PROGRESS=yes + export PROGRESS_value PROGRESS_incstep + fi +fi +export VERBOSE PROGRESS + +# +# Call all parts in order. +# +for i in /etc/rcS.d/S??* +do + # Ignore dangling symlinks for now. + [ ! -f "$i" ] && continue + + # Handle verbosity + [ "$VERBOSE" = very ] && echo "INIT: Running $i..." + if [ "$PROGRESS" = yes ]; then + export PROGRESS_value=`expr $PROGRESS_value + $PROGRESS_incstep` + echo "$PROGRESS_value Starting $i..." >/proc/progress + fi + + case "$i" in + *.sh) + # Source shell script for speed. + ( + trap - INT QUIT TSTP + set start + . $i + ) + ;; + *) + # No sh extension, so fork subprocess. + $i start + ;; + esac + + # + # Report status based on result code + # + result=$? + if [ "$PROGRESS" = yes ]; then + if [ "$result" = 0 ]; then + echo "=s" >/proc/progress + else + echo "=f" >/proc/progress + fi + fi +done + +# +# For compatibility, run the files in /etc/rc.boot too. +# +[ -d /etc/rc.boot ] && run-parts /etc/rc.boot + +# +# Finish setup if needed. The comment above about +# /sbin/unconfigured.sh applies here as well! +# +if [ -x /sbin/setup.sh ] +then + /sbin/setup.sh +fi + |