diff options
Diffstat (limited to 'packages/initscripts/initscripts-1.0')
68 files changed, 1471 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-1.0/.mtn2git_empty b/packages/initscripts/initscripts-1.0/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/akita/.mtn2git_empty b/packages/initscripts/initscripts-1.0/akita/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/akita/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/akita/devices b/packages/initscripts/initscripts-1.0/akita/devices index e69de29bb2..b3a3323b8a 100644..100755 --- a/packages/initscripts/initscripts-1.0/akita/devices +++ b/packages/initscripts/initscripts-1.0/akita/devices @@ -0,0 +1,63 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + +. /etc/default/rcS + +if test -e /dev/.devfsd +then + if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi + ln -s /dev/touchscreen/0 /dev/ts + ln -s /dev/touchscreen/0raw /dev/tsraw + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 +# ln -s /dev/tts/0 /dev/ttySA0 +# ln -s /dev/tts/1 /dev/ttySA1 +# ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + if test "$VERBOSE" != "no"; then echo "done"; fi +else + if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi + mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi + if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi + cd / + mkdir -p dev/msys + mkdir -p dev/pts + mkdir -p dev/input + mkdir -p dev/vc + for i in 0 1 2 3 4 5 6 7 8 9; do + ln -s /dev/tty$i /dev/vc/$i + done + ln -sf /dev/sharp_ts /dev/ts + ln -sf /dev/sharp_fl /dev/fl + ln -sf /proc/self/fd /dev/fd + ln -sf /proc/kcore /dev/core + /sbin/makedevs -r / -D /etc/device_table + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi +fi + +exit 0 diff --git a/packages/initscripts/initscripts-1.0/arm/.mtn2git_empty b/packages/initscripts/initscripts-1.0/arm/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/arm/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/banner b/packages/initscripts/initscripts-1.0/banner index e69de29bb2..21a01d2846 100644..100755 --- a/packages/initscripts/initscripts-1.0/banner +++ b/packages/initscripts/initscripts-1.0/banner @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ ! -e /dev/tty ]; then + /bin/mknod -m 0666 /dev/tty c 5 0 +fi + +if ( > /dev/tty0 ) 2>/dev/null; then + vtmaster=/dev/tty0 +elif ( > /dev/vc/0 ) 2>/dev/null; then + vtmaster=/dev/vc/0 +else + vtmaster=/dev/null +fi +echo > $vtmaster +echo "Please wait: booting..." > $vtmaster diff --git a/packages/initscripts/initscripts-1.0/beagle/.mtn2git_empty b/packages/initscripts/initscripts-1.0/beagle/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/beagle/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/beagle/devices b/packages/initscripts/initscripts-1.0/beagle/devices index e69de29bb2..f80b7f9edb 100644..100755 --- a/packages/initscripts/initscripts-1.0/beagle/devices +++ b/packages/initscripts/initscripts-1.0/beagle/devices @@ -0,0 +1,60 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + +. /etc/default/rcS + +if test -e /dev/.devfsd +then + if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 + ln -s /dev/tts/0 /dev/ttyS0 +# ln -s /dev/tts/1 /dev/ttySA1 +# ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + if test "$VERBOSE" != "no"; then echo "done"; fi +else + if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi + mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi + if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi + cd / + mkdir -p dev/msys + mkdir -p dev/pts + mkdir -p dev/vc + for i in 0 1 2 3 4 5 6 7 8 9; do + ln -s /dev/tty$i /dev/vc/$i + done + ln -sf /dev/misc/touchscreen/ucb1x00 /dev/ts + ln -sf /dev/misc/sa1100-sc /dev/sa1100-sc + ln -sf /proc/self/fd /dev/fd + ln -sf /proc/kcore /dev/core + /sbin/makedevs -r / -D /etc/device_table + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi +fi + +exit 0 diff --git a/packages/initscripts/initscripts-1.0/bootmisc.sh b/packages/initscripts/initscripts-1.0/bootmisc.sh index ed46b222d2..ed46b222d2 100644..100755 --- a/packages/initscripts/initscripts-1.0/bootmisc.sh +++ b/packages/initscripts/initscripts-1.0/bootmisc.sh diff --git a/packages/initscripts/initscripts-1.0/c7x0/.mtn2git_empty b/packages/initscripts/initscripts-1.0/c7x0/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/c7x0/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/c7x0/devices b/packages/initscripts/initscripts-1.0/c7x0/devices index e69de29bb2..b3a3323b8a 100644..100755 --- a/packages/initscripts/initscripts-1.0/c7x0/devices +++ b/packages/initscripts/initscripts-1.0/c7x0/devices @@ -0,0 +1,63 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + +. /etc/default/rcS + +if test -e /dev/.devfsd +then + if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi + ln -s /dev/touchscreen/0 /dev/ts + ln -s /dev/touchscreen/0raw /dev/tsraw + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 +# ln -s /dev/tts/0 /dev/ttySA0 +# ln -s /dev/tts/1 /dev/ttySA1 +# ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + if test "$VERBOSE" != "no"; then echo "done"; fi +else + if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi + mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi + if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi + cd / + mkdir -p dev/msys + mkdir -p dev/pts + mkdir -p dev/input + mkdir -p dev/vc + for i in 0 1 2 3 4 5 6 7 8 9; do + ln -s /dev/tty$i /dev/vc/$i + done + ln -sf /dev/sharp_ts /dev/ts + ln -sf /dev/sharp_fl /dev/fl + ln -sf /proc/self/fd /dev/fd + ln -sf /proc/kcore /dev/core + /sbin/makedevs -r / -D /etc/device_table + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi +fi + +exit 0 diff --git a/packages/initscripts/initscripts-1.0/c7x0/keymap b/packages/initscripts/initscripts-1.0/c7x0/keymap index e69de29bb2..6f4a8cdc87 100644..100755 --- a/packages/initscripts/initscripts-1.0/c7x0/keymap +++ b/packages/initscripts/initscripts-1.0/c7x0/keymap @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ `uname -r | cut -d '.' -f 1,2` != "2.4" ]; then + loadkeys /etc/corgikeymap-2.6.map +fi
\ No newline at end of file diff --git a/packages/initscripts/initscripts-1.0/checkfs.sh b/packages/initscripts/initscripts-1.0/checkfs.sh index e69de29bb2..7d2d75ef57 100644..100755 --- a/packages/initscripts/initscripts-1.0/checkfs.sh +++ b/packages/initscripts/initscripts-1.0/checkfs.sh @@ -0,0 +1,46 @@ +# +# checkfs.sh Check all filesystems. +# +# Version: @(#)checkfs 2.83 05-Oct-2001 miquels@cistron.nl +# + +. /etc/default/rcS + +# +# Check the rest of the filesystems. +# +if test ! -f /fastboot +then + if test -f /forcefsck + then + force="-f" + else + force="" + fi + if test "$FSCKFIX" = yes + then + fix="-y" + else + fix="-a" + fi + spinner="-C" + case "$TERM" in + dumb|network|unknown|"") spinner="" ;; + esac + test "`uname -m`" = "s390" && spinner="" # This should go away + test "$VERBOSE" != no && echo "Checking all filesystems..." + fsck $spinner -R -A $fix $force + if test "$?" -gt 1 + then + echo + echo "fsck failed. Please repair manually." + echo + echo "CONTROL-D will exit from this shell and continue system startup." + echo + # Start a single user shell on the console + /sbin/sulogin $CONSOLE + fi +fi +rm -f /fastboot /forcefsck + +: exit 0 diff --git a/packages/initscripts/initscripts-1.0/checkroot.sh b/packages/initscripts/initscripts-1.0/checkroot.sh index e69de29bb2..8255038c32 100644..100755 --- a/packages/initscripts/initscripts-1.0/checkroot.sh +++ b/packages/initscripts/initscripts-1.0/checkroot.sh @@ -0,0 +1,165 @@ +# +# checkroot.sh Check to root filesystem. +# +# Version: @(#)checkroot.sh 2.84 25-Jan-2002 miquels@cistron.nl +# + +. /etc/default/rcS + +# +# Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to be spawned +# from this script *before anything else* with a timeout, like SCO does. +# +test "$SULOGIN" = yes && sulogin -t 30 $CONSOLE + +# +# Ensure that bdflush (update) is running before any major I/O is +# performed (the following fsck is a good example of such activity :). +# +test -x /sbin/update && update + +# +# Read /etc/fstab. +# +exec 9>&0 </etc/fstab +rootmode=rw +rootopts=rw +rootcheck=no +swap_on_md=no +devfs= +while read fs mnt type opts dump pass junk +do + case "$fs" in + ""|\#*) + continue; + ;; + /dev/md*) + # Swap on md device. + test "$type" = swap && swap_on_md=yes + ;; + /dev/*) + ;; + *) + # Might be a swapfile. + test "$type" = swap && swap_on_md=yes + ;; + esac + test "$type" = devfs && devfs="$fs" + test "$mnt" != / && continue + rootopts="$opts" + test "$pass" = 0 -o "$pass" = "" && rootcheck=no + case "$opts" in + ro|ro,*|*,ro|*,ro,*) + rootmode=ro + ;; + esac +done +exec 0>&9 9>&- + +# +# Activate the swap device(s) in /etc/fstab. This needs to be done +# before fsck, since fsck can be quite memory-hungry. +# +doswap=no +test -d /proc/1 || mount -n /proc +case "`uname -r`" in + 2.[0123].*) + if test $swap_on_md = yes && grep -qs resync /proc/mdstat + then + test "$VERBOSE" != no && echo "Not activating swap - RAID array resyncing" + else + doswap=yes + fi + ;; + *) + doswap=yes + ;; +esac +if test $doswap = yes +then + test "$VERBOSE" != no && echo "Activating swap" + swapon -a 2> /dev/null +fi + +# +# Check the root filesystem. +# +if test -f /fastboot || test $rootcheck = no +then + test $rootcheck = yes && echo "Fast boot, no filesystem check" +else + # + # Ensure that root is quiescent and read-only before fsck'ing. + # + mount -n -o remount,ro / + if test $? = 0 + then + if test -f /forcefsck + then + force="-f" + else + force="" + fi + if test "$FSCKFIX" = yes + then + fix="-y" + else + fix="-a" + fi + spinner="-C" + case "$TERM" in + dumb|network|unknown|"") spinner="" ;; + esac + test `uname -m` = s390 && spinner="" # This should go away + test "$VERBOSE" != no && echo "Checking root filesystem..." + fsck $spinner $force $fix / + # + # If there was a failure, drop into single-user mode. + # + # NOTE: "failure" is defined as exiting with a return code of + # 2 or larger. A return code of 1 indicates that filesystem + # errors were corrected but that the boot may proceed. + # + if test "$?" -gt 1 + then + # Surprise! Re-directing from a HERE document (as in + # "cat << EOF") won't work, because the root is read-only. + echo + echo "fsck failed. Please repair manually and reboot. Please note" + echo "that the root filesystem is currently mounted read-only. To" + echo "remount it read-write:" + echo + echo " # mount -n -o remount,rw /" + echo + echo "CONTROL-D will exit from this shell and REBOOT the system." + echo + # Start a single user shell on the console + /sbin/sulogin $CONSOLE + reboot -f + fi + else + echo "*** ERROR! Cannot fsck root fs because it is not mounted read-only!" + echo + fi +fi + +# +# If the root filesystem was not marked as read-only in /etc/fstab, +# remount the rootfs rw but do not try to change mtab because it +# is on a ro fs until the remount succeeded. Then clean up old mtabs +# and finally write the new mtab. +# +mount -n -o remount,$rootmode / +if test "$rootmode" = rw +then + if test ! -L /etc/mtab + then + rm -f /etc/mtab~ /etc/nologin + : > /etc/mtab + fi + mount -f -o remount / + mount -f /proc + test "$devfs" && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs" +fi + +: exit 0 diff --git a/packages/initscripts/initscripts-1.0/collie/.mtn2git_empty b/packages/initscripts/initscripts-1.0/collie/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/collie/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/collie/devices b/packages/initscripts/initscripts-1.0/collie/devices index 7413e455b0..7413e455b0 100644..100755 --- a/packages/initscripts/initscripts-1.0/collie/devices +++ b/packages/initscripts/initscripts-1.0/collie/devices diff --git a/packages/initscripts/initscripts-1.0/corgikeymap-2.6.map b/packages/initscripts/initscripts-1.0/corgikeymap-2.6.map index 5b576ecc93..5b576ecc93 100644..100755 --- a/packages/initscripts/initscripts-1.0/corgikeymap-2.6.map +++ b/packages/initscripts/initscripts-1.0/corgikeymap-2.6.map diff --git a/packages/initscripts/initscripts-1.0/devices b/packages/initscripts/initscripts-1.0/devices index 28fb71fe3f..28fb71fe3f 100644..100755 --- a/packages/initscripts/initscripts-1.0/devices +++ b/packages/initscripts/initscripts-1.0/devices diff --git a/packages/initscripts/initscripts-1.0/devpts b/packages/initscripts/initscripts-1.0/devpts index e69de29bb2..4a0978b404 100644 --- a/packages/initscripts/initscripts-1.0/devpts +++ b/packages/initscripts/initscripts-1.0/devpts @@ -0,0 +1,5 @@ +# GID of the `tty' group +TTYGRP=5 + +# Set to 600 to have `mesg n' be the default +TTYMODE=620 diff --git a/packages/initscripts/initscripts-1.0/devpts.sh b/packages/initscripts/initscripts-1.0/devpts.sh index e69de29bb2..334cf63801 100644..100755 --- a/packages/initscripts/initscripts-1.0/devpts.sh +++ b/packages/initscripts/initscripts-1.0/devpts.sh @@ -0,0 +1,28 @@ +#! /bin/sh + +. /etc/default/devpts + +test "`uname -s`" = "Linux" || exit 0 + +# +# First find out if devpts is available. Also check if devfs +# is already mounted - in that case we don't want to use devpts. +# +if test ! -e /dev/.devfsd && ( grep -q devpts /proc/filesystems ) +then + # + # Create multiplexor device. + # + test -c /dev/ptmx || mknod -m 666 /dev/ptmx c 5 2 + + # + # Mount /dev/pts if needed. + # + if ( ! grep -q devpts /proc/mounts ) + then + mkdir -p /dev/pts + mount -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE} + fi +fi + +exit 0 diff --git a/packages/initscripts/initscripts-1.0/finish b/packages/initscripts/initscripts-1.0/finish index e69de29bb2..4f9f75f47c 100644..100755 --- a/packages/initscripts/initscripts-1.0/finish +++ b/packages/initscripts/initscripts-1.0/finish @@ -0,0 +1,6 @@ +#!/bin/sh + +if ! test -e /etc/.configured; then + > /etc/.configured +fi + diff --git a/packages/initscripts/initscripts-1.0/h3600/.mtn2git_empty b/packages/initscripts/initscripts-1.0/h3600/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/h3600/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/h3600/devices b/packages/initscripts/initscripts-1.0/h3600/devices index e69de29bb2..d7b346a655 100644..100755 --- a/packages/initscripts/initscripts-1.0/h3600/devices +++ b/packages/initscripts/initscripts-1.0/h3600/devices @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + + test -n "$VERBOSE" && echo -n "Setting up device links for devfs: " + ( + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 + # ln -s /dev/tts/0 /dev/ttySA0 + # ln -s /dev/tts/1 /dev/ttySA1 + # ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + ln -s /dev/misc/apm_bios /dev/apm_bios + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + ) > /dev/null 2>&1 + + + test -n "$VERBOSE" && echo "done" diff --git a/packages/initscripts/initscripts-1.0/h3900/.mtn2git_empty b/packages/initscripts/initscripts-1.0/h3900/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/h3900/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/h3900/devices b/packages/initscripts/initscripts-1.0/h3900/devices index e69de29bb2..d7b346a655 100644..100755 --- a/packages/initscripts/initscripts-1.0/h3900/devices +++ b/packages/initscripts/initscripts-1.0/h3900/devices @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + + test -n "$VERBOSE" && echo -n "Setting up device links for devfs: " + ( + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 + # ln -s /dev/tts/0 /dev/ttySA0 + # ln -s /dev/tts/1 /dev/ttySA1 + # ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + ln -s /dev/misc/apm_bios /dev/apm_bios + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + ) > /dev/null 2>&1 + + + test -n "$VERBOSE" && echo "done" diff --git a/packages/initscripts/initscripts-1.0/halt b/packages/initscripts/initscripts-1.0/halt index aa1769606a..aa1769606a 100644..100755 --- a/packages/initscripts/initscripts-1.0/halt +++ b/packages/initscripts/initscripts-1.0/halt diff --git a/packages/initscripts/initscripts-1.0/hostname.sh b/packages/initscripts/initscripts-1.0/hostname.sh index e69de29bb2..0f3d374286 100644..100755 --- a/packages/initscripts/initscripts-1.0/hostname.sh +++ b/packages/initscripts/initscripts-1.0/hostname.sh @@ -0,0 +1,11 @@ +# +# hostname.sh Set hostname. +# +# Version: @(#)hostname.sh 1.10 26-Feb-2001 miquels@cistron.nl +# + +if test -f /etc/hostname +then + hostname -F /etc/hostname +fi + diff --git a/packages/initscripts/initscripts-1.0/jornada56x/.mtn2git_empty b/packages/initscripts/initscripts-1.0/jornada56x/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/jornada56x/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/jornada56x/devices b/packages/initscripts/initscripts-1.0/jornada56x/devices index e69de29bb2..d7b346a655 100644..100755 --- a/packages/initscripts/initscripts-1.0/jornada56x/devices +++ b/packages/initscripts/initscripts-1.0/jornada56x/devices @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + + test -n "$VERBOSE" && echo -n "Setting up device links for devfs: " + ( + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 + # ln -s /dev/tts/0 /dev/ttySA0 + # ln -s /dev/tts/1 /dev/ttySA1 + # ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + ln -s /dev/misc/apm_bios /dev/apm_bios + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + ) > /dev/null 2>&1 + + + test -n "$VERBOSE" && echo "done" diff --git a/packages/initscripts/initscripts-1.0/jornada6xx/.mtn2git_empty b/packages/initscripts/initscripts-1.0/jornada6xx/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/jornada6xx/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/jornada6xx/devices b/packages/initscripts/initscripts-1.0/jornada6xx/devices index e69de29bb2..fc96ff62ee 100644 --- a/packages/initscripts/initscripts-1.0/jornada6xx/devices +++ b/packages/initscripts/initscripts-1.0/jornada6xx/devices @@ -0,0 +1,70 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + +. /etc/default/rcS + +# exit without doing anything if udev is active +if test -e /dev/.udevdb; then + exit 0 +fi + +if test -e /dev/.devfsd +then + if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi + ln -s /dev/touchscreen/0 /dev/ts + ln -s /dev/touchscreen/0raw /dev/tsraw + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 +# ln -s /dev/tts/0 /dev/ttySA0 +# ln -s /dev/tts/1 /dev/ttySA1 +# ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + + if test "$VERBOSE" != "no"; then echo "done"; fi +else + if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi + mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi + if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi + cd / + mkdir -p dev/input + mknod /dev/input/ts0 c 13 128 + mknod /dev/ttySC1 c 9 204 + mknod /dev/irda0 c 10 204 + mkdir -p dev/msys + mkdir -p dev/pts + mkdir -p dev/vc + for i in 0 1 2 3 4 5 6 7 8 9; do + ln -s /dev/tty$i /dev/vc/$i + done + ln -sf /proc/self/fd /dev/fd + ln -sf /proc/kcore /dev/core + /sbin/makedevs -r / -D /etc/device_table + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi +fi + +exit 0 diff --git a/packages/initscripts/initscripts-1.0/jornada7xx/.mtn2git_empty b/packages/initscripts/initscripts-1.0/jornada7xx/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/jornada7xx/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/jornada7xx/devices b/packages/initscripts/initscripts-1.0/jornada7xx/devices index e69de29bb2..d7b346a655 100644..100755 --- a/packages/initscripts/initscripts-1.0/jornada7xx/devices +++ b/packages/initscripts/initscripts-1.0/jornada7xx/devices @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + + test -n "$VERBOSE" && echo -n "Setting up device links for devfs: " + ( + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 + # ln -s /dev/tts/0 /dev/ttySA0 + # ln -s /dev/tts/1 /dev/ttySA1 + # ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + ln -s /dev/misc/apm_bios /dev/apm_bios + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + ) > /dev/null 2>&1 + + + test -n "$VERBOSE" && echo "done" diff --git a/packages/initscripts/initscripts-1.0/mountall.sh b/packages/initscripts/initscripts-1.0/mountall.sh index e69de29bb2..b5cb85a1e9 100644..100755 --- a/packages/initscripts/initscripts-1.0/mountall.sh +++ b/packages/initscripts/initscripts-1.0/mountall.sh @@ -0,0 +1,45 @@ +# +# mountall.sh Mount all filesystems. +# +# Version: @(#)mountall.sh 2.83-2 01-Nov-2001 miquels@cistron.nl +# +. /etc/default/rcS + +# +# Mount local filesystems in /etc/fstab. For some reason, people +# might want to mount "proc" several times, and mount -v complains +# about this. So we mount "proc" filesystems without -v. +# +test "$VERBOSE" != no && echo "Mounting local filesystems..." +mount -at nonfs,nosmbfs,noncpfs 2>/dev/null + +# +# We might have mounted something over /dev, see if /dev/initctl is there. +# +if test ! -p /dev/initctl +then + rm -f /dev/initctl + mknod -m 600 /dev/initctl p +fi +kill -USR1 1 + +# +# Execute swapon command again, in case we want to swap to +# a file on a now mounted filesystem. +# +doswap=yes +case "`uname -r`" in + 2.[0123].*) + if grep -qs resync /proc/mdstat + then + doswap=no + fi + ;; +esac +if test $doswap = yes +then + swapon -a 2> /dev/null +fi + +: exit 0 + diff --git a/packages/initscripts/initscripts-1.0/mountnfs.sh b/packages/initscripts/initscripts-1.0/mountnfs.sh index e69de29bb2..84cb3651fc 100644..100755 --- a/packages/initscripts/initscripts-1.0/mountnfs.sh +++ b/packages/initscripts/initscripts-1.0/mountnfs.sh @@ -0,0 +1,87 @@ +# +# mountnfs.sh Now that TCP/IP is configured, mount the NFS file +# systems in /etc/fstab if needed. If possible, +# start the portmapper before mounting (this is needed for +# Linux 2.1.x and up). +# +# Also mounts SBM filesystems now, so the name of +# this script is getting increasingly inaccurate. +# +# Version: @(#)mountnfs.sh 2.83 05-Oct-2001 miquels@cistron.nl +# + +. /etc/default/rcS + +# +# Run in a subshell because of I/O redirection. +# +test -f /etc/fstab && ( + +# +# Read through fstab line by line. If it is NFS, set the flag +# for mounting NFS filesystems. If any NFS partition is found and it +# not mounted with the nolock option, we start the portmapper. +# +portmap=no +mount_nfs=no +mount_smb=no +mount_ncp=no +while read device mountpt fstype options +do + case "$device" in + ""|\#*) + continue + ;; + esac + + case "$options" in + *noauto*) + continue + ;; + esac + + if test "$fstype" = nfs + then + mount_nfs=yes + case "$options" in + *nolock*) + ;; + *) + portmap=yes + ;; + esac + fi + if test "$fstype" = smbfs + then + mount_smb=yes + fi + if test "$fstype" = ncpfs + then + mount_ncp=yes + fi +done + +exec 0>&1 + +if test "$portmap" = yes +then + if test -x /sbin/portmap + then + echo -n "Starting portmapper... " + start-stop-daemon --start --quiet --exec /sbin/portmap + sleep 2 + fi +fi + +if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes +then + echo "Mounting remote filesystems..." + test "$mount_nfs" = yes && mount -a -t nfs + test "$mount_smb" = yes && mount -a -t smbfs + test "$mount_ncp" = yes && mount -a -t ncpfs +fi + +) < /etc/fstab + +: exit 0 + diff --git a/packages/initscripts/initscripts-1.0/openmn/.mtn2git_empty b/packages/initscripts/initscripts-1.0/openmn/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/openmn/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/openmn/extractfs b/packages/initscripts/initscripts-1.0/openmn/extractfs index e69de29bb2..7e57dedd2d 100644..100755 --- a/packages/initscripts/initscripts-1.0/openmn/extractfs +++ b/packages/initscripts/initscripts-1.0/openmn/extractfs @@ -0,0 +1,7 @@ +#!/bin/sh + +if (grep -q 'tmpfs.*/var.*tmpfs' /proc/mounts) +then + test "$VERBOSE" != no && echo "Copying /var filesystem..." + cp -a /boot/var / +fi diff --git a/packages/initscripts/initscripts-1.0/openmn/packages b/packages/initscripts/initscripts-1.0/openmn/packages index e69de29bb2..2566487d2d 100644..100755 --- a/packages/initscripts/initscripts-1.0/openmn/packages +++ b/packages/initscripts/initscripts-1.0/openmn/packages @@ -0,0 +1,63 @@ +#!/bin/sh +# Original author: ??? +# +# Additions by Steph Meslin-Weber: +# x Percentage display +# x Dot display of dependency installations +# - removed both of above +# - display is now X of Y packages and current package name being installed + +#. /etc/default/rcS + +reconfigure () { + pkg=$1 + path=$2 + isdependent=$3 + test -e "$path/info/$pkg.control" || return 1 + depends="`cat $path/info/$pkg.control|grep Depends|cut -d: -f2`" + + # make sure we haven't already installed this package + isthere=`cat /tmp/.configured.list|grep $pkg` + if test "$isthere" != ""; then + return 1 + fi + + if test "$depends" != ""; then + for dep in $depends; do + (echo $log|grep $dep >/dev/null 2>&1) || ( reconfigure $dep $path "$max" "$pkg" && log="$log $dep"; ) + done + fi + + echo -ne " ${pkg}" + + test -e "$path/info/$pkg.prerm" && $path/info/$pkg.prerm unconfigure >/dev/null 2>&1 + test -e "$path/info/$pkg.postinst" && $path/info/$pkg.postinst configure >/dev/null 2>&1 + + log="$log $pkg" + + # append the installed package name to the list + echo -ne "$pkg\n" >> /tmp/.configured.list + + echo + return 0 +} + +if test ! -e /etc/.configured; then + echo "Reconfiguring all packages installed to root:" + + # create unique packages list file + rm -f /tmp/.configured.list + touch /tmp/.configured.list + + log="" + + for control in /usr/lib/ipkg/info/*.control; do + package=`echo $control|sed -e 's,.*/,,g; s,\.control,,g;'` + (echo $log|grep $package >/dev/null 2>&1) || reconfigure $package /usr/lib/ipkg + done + + # cleanup unique packages list file + rm -f /tmp/.configured.list +fi + +test -f /usr/lib/ipkg/info/task-ramses || ipkg install task-ramses diff --git a/packages/initscripts/initscripts-1.0/openmn/umountfs b/packages/initscripts/initscripts-1.0/openmn/umountfs index e69de29bb2..399194109b 100644..100755 --- a/packages/initscripts/initscripts-1.0/openmn/umountfs +++ b/packages/initscripts/initscripts-1.0/openmn/umountfs @@ -0,0 +1,17 @@ +#! /bin/sh +# +# umountfs Turn off swap and unmount all local filesystems. +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +echo "Deactivating swap..." +swapoff -a + +# We leave /proc mounted. +echo "Unmounting local filesystems..." +umount -f -a -r + +mount -o remount,ro / + +: exit 0 diff --git a/packages/initscripts/initscripts-1.0/openslug/.mtn2git_empty b/packages/initscripts/initscripts-1.0/openslug/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/openslug/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/openslug/alignment.sh b/packages/initscripts/initscripts-1.0/openslug/alignment.sh index e69de29bb2..bf193cb01c 100644 --- a/packages/initscripts/initscripts-1.0/openslug/alignment.sh +++ b/packages/initscripts/initscripts-1.0/openslug/alignment.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# +# How to handle alignment faults on the ARM +# +# 0 - ignore, the value will probably be rotated +# 1 - warn, a log message will be output +# 2 - fixup, the kernel will do an expensive aligned read +# 3 - fixup+warn +# 4 - signal, the process will get an illegal instruction fault +# 5 - signal+warn +# 6 - invalid (has no effect) +# 7 - invalid (has no effect) +# +# Set ALIGN in /etc/default/rcS to override (do not edit this +# file!) Set ALIGN to empty to avoid changing the kernel +# default (currently '0'). +ALIGN=1 +. /etc/default/rcS +test -e /proc/cpu/alignment -a -n "$ALIGN" -a "$ALIGN" -ge 0 -a "$ALIGN" -lt 6 && + echo "$ALIGN" >/proc/cpu/alignment diff --git a/packages/initscripts/initscripts-1.0/openslug/banner b/packages/initscripts/initscripts-1.0/openslug/banner index e69de29bb2..d80fb19fe4 100644 --- a/packages/initscripts/initscripts-1.0/openslug/banner +++ b/packages/initscripts/initscripts-1.0/openslug/banner @@ -0,0 +1,4 @@ +#!/bin/sh +#NOTE: this script may execute with absolutely nothing +# in /dev +echo "OpenSlug booting..." diff --git a/packages/initscripts/initscripts-1.0/openslug/domainname.sh b/packages/initscripts/initscripts-1.0/openslug/domainname.sh index e69de29bb2..7113467d8c 100644 --- a/packages/initscripts/initscripts-1.0/openslug/domainname.sh +++ b/packages/initscripts/initscripts-1.0/openslug/domainname.sh @@ -0,0 +1,5 @@ +# +# domainname.sh Set the domainname. +# +test -r /etc/defaultdomain && + cat /etc/defaultdomain >/proc/sys/kernel/domainname diff --git a/packages/initscripts/initscripts-1.0/openslug/rootopts.patch b/packages/initscripts/initscripts-1.0/openslug/rootopts.patch index e69de29bb2..3f2a925879 100644 --- a/packages/initscripts/initscripts-1.0/openslug/rootopts.patch +++ b/packages/initscripts/initscripts-1.0/openslug/rootopts.patch @@ -0,0 +1,15 @@ +# +# Ensure that the root file system is remounted with the correct +# options from fstab +# +--- old/checkroot.sh 2005-05-28 19:30:55.488975598 -0700 ++++ new/checkroot.sh 2005-05-28 19:31:32.334390450 -0700 +@@ -149,7 +149,7 @@ + # is on a ro fs until the remount succeeded. Then clean up old mtabs + # and finally write the new mtab. + # +-mount -n -o remount,$rootmode / ++mount -n -o remount,$rootopts / + if test "$rootmode" = rw + then + if test ! -L /etc/mtab diff --git a/packages/initscripts/initscripts-1.0/openslug/umountfs b/packages/initscripts/initscripts-1.0/openslug/umountfs index e69de29bb2..d6f432dbda 100644 --- a/packages/initscripts/initscripts-1.0/openslug/umountfs +++ b/packages/initscripts/initscripts-1.0/openslug/umountfs @@ -0,0 +1,43 @@ +#! /bin/sh +# +# umountfs Turn off swap and unmount all local filesystems. +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +# Ensure /proc is mounted +test -r /proc/mounts || mount -t proc proc /proc + +echo "Deactivating swap..." +swapoff -a + +# We leave /proc mounted, the umount of /dev/devpts seems to fail +# quite frequently, the busybox umount apparently gives up at the +# first failure, so it is necessary to go file system by file +# system. It is necessary to go backward in the /proc list, because +# later things may have been mounted on earlier mounts. +devfs= +unmount() { + local dev mp type opts + if read dev mp type opts + then + # recurse - unmount later items + unmount + # skip /proc and /dev but not the sub-directories + case "$mp" in + /|/proc)return 0;; + /dev) devfs=1 + return 0;; + esac + # then unmount this, if possible, otherwise make + # it read-only + umount -f -r "$mp" + fi +} + +echo "Unmounting local filesystems..." +unmount </proc/mounts + +# now /dev and read-only / (halt/reboot may need /proc!) +test -n "$devfs" && umount -f -r /dev +mount -o remount,ro / diff --git a/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh b/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh index e69de29bb2..994a919225 100644 --- a/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh +++ b/packages/initscripts/initscripts-1.0/openslug/umountnfs.sh @@ -0,0 +1,40 @@ +#! /bin/sh +# +# umountnfs.sh Unmount all network filesystems. +# +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +# Write a reboot record to /var/log/wtmp before unmounting +halt -w + +# Ensure /proc is mounted +test -r /proc/mounts || mount -t proc proc /proc + +echo "Unmounting remote filesystems..." + +# +# Read the list of mounted file systems and -f umount the +# known network file systems. -f says umount it even if +# the server is unreachable. Do not attempt to umount +# the root file system. Unmount in reverse order from +# that given by /proc/mounts (otherwise it may not work). +# +unmount() { + local dev mp type opts + if read dev mp type opts + then + # recurse - unmount later items + unmount + # skip /, /proc and /dev + case "$mp" in + /|/proc)return 0;; + /dev) return 0;; + esac + # then unmount this, if nfs + case "$type" in + nfs|smbfs|ncpfs) umount -f "$mp";; + esac + fi +} + +unmount </proc/mounts diff --git a/packages/initscripts/initscripts-1.0/openzaurus/.mtn2git_empty b/packages/initscripts/initscripts-1.0/openzaurus/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/openzaurus/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/openzaurus/checkversion b/packages/initscripts/initscripts-1.0/openzaurus/checkversion index 0c8be4fc2d..0c8be4fc2d 100644..100755 --- a/packages/initscripts/initscripts-1.0/openzaurus/checkversion +++ b/packages/initscripts/initscripts-1.0/openzaurus/checkversion diff --git a/packages/initscripts/initscripts-1.0/poodle/.mtn2git_empty b/packages/initscripts/initscripts-1.0/poodle/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/poodle/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/poodle/devices b/packages/initscripts/initscripts-1.0/poodle/devices index 7413e455b0..7413e455b0 100644..100755 --- a/packages/initscripts/initscripts-1.0/poodle/devices +++ b/packages/initscripts/initscripts-1.0/poodle/devices diff --git a/packages/initscripts/initscripts-1.0/ramdisk b/packages/initscripts/initscripts-1.0/ramdisk index 03ac9bd05b..03ac9bd05b 100644..100755 --- a/packages/initscripts/initscripts-1.0/ramdisk +++ b/packages/initscripts/initscripts-1.0/ramdisk diff --git a/packages/initscripts/initscripts-1.0/reboot b/packages/initscripts/initscripts-1.0/reboot index 7f95255bd9..7f95255bd9 100644..100755 --- a/packages/initscripts/initscripts-1.0/reboot +++ b/packages/initscripts/initscripts-1.0/reboot diff --git a/packages/initscripts/initscripts-1.0/rmnologin b/packages/initscripts/initscripts-1.0/rmnologin index e69de29bb2..444145a26a 100644..100755 --- a/packages/initscripts/initscripts-1.0/rmnologin +++ b/packages/initscripts/initscripts-1.0/rmnologin @@ -0,0 +1,14 @@ +#! /bin/sh +# +# rmnologin This script removes the /etc/nologin file as the last +# step in the boot process. +# +# Version: @(#)rmnologin 1.00 22-Jun-1998 miquels@cistron.nl +# + +if test -f /etc/nologin.boot +then + rm -f /etc/nologin /etc/nologin.boot +fi + +: exit 0 diff --git a/packages/initscripts/initscripts-1.0/sendsigs b/packages/initscripts/initscripts-1.0/sendsigs index e69de29bb2..c62a5cd37d 100644..100755 --- a/packages/initscripts/initscripts-1.0/sendsigs +++ b/packages/initscripts/initscripts-1.0/sendsigs @@ -0,0 +1,17 @@ +#! /bin/sh +# +# sendsigs Kill all remaining processes. +# +# Version: @(#)sendsigs 2.75 22-Jun-1998 miquels@cistron.nl +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +# Kill all processes. +echo "Sending all processes the TERM signal..." +killall5 -15 +sleep 5 +echo "Sending all processes the KILL signal..." +killall5 -9 + +: exit 0 diff --git a/packages/initscripts/initscripts-1.0/simpad/.mtn2git_empty b/packages/initscripts/initscripts-1.0/simpad/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/simpad/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/simpad/devices b/packages/initscripts/initscripts-1.0/simpad/devices index e69de29bb2..d7b346a655 100644 --- a/packages/initscripts/initscripts-1.0/simpad/devices +++ b/packages/initscripts/initscripts-1.0/simpad/devices @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + + test -n "$VERBOSE" && echo -n "Setting up device links for devfs: " + ( + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 + # ln -s /dev/tts/0 /dev/ttySA0 + # ln -s /dev/tts/1 /dev/ttySA1 + # ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + ln -s /dev/misc/apm_bios /dev/apm_bios + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + ) > /dev/null 2>&1 + + + test -n "$VERBOSE" && echo "done" diff --git a/packages/initscripts/initscripts-1.0/single b/packages/initscripts/initscripts-1.0/single index e69de29bb2..2d177ebb62 100644..100755 --- a/packages/initscripts/initscripts-1.0/single +++ b/packages/initscripts/initscripts-1.0/single @@ -0,0 +1,21 @@ +#! /bin/sh +# +# single executed by init(8) upon entering runlevel 1 (single). +# +# Version: @(#)single 1.20 26-Geb-2001 miquels@cistron.nl +# + +PATH="/sbin:/bin:/usr/sbin:/usr/bin" + +# Kill all processes. +echo "Sending all processes the TERM signal..." +killall5 -15 +sleep 5 +echo "Sending all processes the KILL signal..." +killall5 -9 + +# We start update here, since we just killed it. +test -x /sbin/update && update + +echo "Entering single-user mode..." +exec init -t1 S diff --git a/packages/initscripts/initscripts-1.0/spitz/.mtn2git_empty b/packages/initscripts/initscripts-1.0/spitz/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/spitz/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/spitz/devices b/packages/initscripts/initscripts-1.0/spitz/devices index e69de29bb2..b3a3323b8a 100644..100755 --- a/packages/initscripts/initscripts-1.0/spitz/devices +++ b/packages/initscripts/initscripts-1.0/spitz/devices @@ -0,0 +1,63 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + +. /etc/default/rcS + +if test -e /dev/.devfsd +then + if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi + ln -s /dev/touchscreen/0 /dev/ts + ln -s /dev/touchscreen/0raw /dev/tsraw + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 +# ln -s /dev/tts/0 /dev/ttySA0 +# ln -s /dev/tts/1 /dev/ttySA1 +# ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + if test "$VERBOSE" != "no"; then echo "done"; fi +else + if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi + mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi + if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi + cd / + mkdir -p dev/msys + mkdir -p dev/pts + mkdir -p dev/input + mkdir -p dev/vc + for i in 0 1 2 3 4 5 6 7 8 9; do + ln -s /dev/tty$i /dev/vc/$i + done + ln -sf /dev/sharp_ts /dev/ts + ln -sf /dev/sharp_fl /dev/fl + ln -sf /proc/self/fd /dev/fd + ln -sf /proc/kcore /dev/core + /sbin/makedevs -r / -D /etc/device_table + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi +fi + +exit 0 diff --git a/packages/initscripts/initscripts-1.0/sysfs.sh b/packages/initscripts/initscripts-1.0/sysfs.sh index e69de29bb2..4486128ad5 100644 --- a/packages/initscripts/initscripts-1.0/sysfs.sh +++ b/packages/initscripts/initscripts-1.0/sysfs.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ -e /proc ] && ! [ -e /proc/mounts ]; then + mount -t proc proc /proc +fi + +if [ -e /sys ] && grep -q sysfs /proc/filesystems; then + mount sysfs /sys -t sysfs +fi + +exit 0 diff --git a/packages/initscripts/initscripts-1.0/tosa/.mtn2git_empty b/packages/initscripts/initscripts-1.0/tosa/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/tosa/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/tosa/devices b/packages/initscripts/initscripts-1.0/tosa/devices index 5ae15589b8..5ae15589b8 100644..100755 --- a/packages/initscripts/initscripts-1.0/tosa/devices +++ b/packages/initscripts/initscripts-1.0/tosa/devices diff --git a/packages/initscripts/initscripts-1.0/tosa/keymap b/packages/initscripts/initscripts-1.0/tosa/keymap index e69de29bb2..656a28dc7b 100644 --- a/packages/initscripts/initscripts-1.0/tosa/keymap +++ b/packages/initscripts/initscripts-1.0/tosa/keymap @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ `uname -r | cut -d '.' -f 1,2` != "2.4" ]; then + loadkeys /etc/tosakeymap-2.6.map +fi diff --git a/packages/initscripts/initscripts-1.0/tosakeymap-2.6.map b/packages/initscripts/initscripts-1.0/tosakeymap-2.6.map index e69de29bb2..ac43471326 100644 --- a/packages/initscripts/initscripts-1.0/tosakeymap-2.6.map +++ b/packages/initscripts/initscripts-1.0/tosakeymap-2.6.map @@ -0,0 +1,210 @@ +# Default kernel keymap. This uses 7 modifier combinations. +keymaps 0-2,4-5,8,12 +# Change the above line into +# keymaps 0-2,4-6,8,12 +# in case you want the entries +# altgr control keycode 83 = Boot +# altgr control keycode 111 = Boot +# below. +# +keycode 1 = +keycode 14 = BackSpace + altgr keycode 14 = Delete +keycode 15 = Tab + altgr keycode 65 = Caps_Lock +keycode 16 = q + altgr keycode 16 = one +keycode 17 = w + altgr keycode 17 = two +keycode 18 = e + altgr keycode 18 = three +keycode 19 = r + altgr keycode 19 = four +keycode 20 = t + altgr keycode 20 = five +keycode 21 = y + altgr keycode 21 = six +keycode 22 = u + altgr keycode 22 = seven +keycode 23 = i + altgr keycode 23 = eight +keycode 24 = o + altgr keycode 24 = nine +keycode 25 = p + altgr keycode 25 = zero +keycode 26 = +keycode 27 = +keycode 28 = Return + altgr keycode 28 = greater +keycode 29 = Control +keycode 30 = a + altgr keycode 30 = exclam +keycode 31 = s + altgr keycode 31 = at +keycode 32 = d + altgr keycode 32 = numbersign +keycode 33 = f + altgr keycode 33 = dollar +keycode 34 = g + altgr keycode 34 = percent +keycode 35 = h + altgr keycode 35 = underscore +keycode 36 = j + altgr keycode 36 = ampersand +keycode 37 = k + altgr keycode 37 = asterisk +keycode 38 = l + altgr keycode 38 = parenleft +keycode 39 = +keycode 40 = apostrophe + altgr keycode 40 = asciitilde + shift keycode 40 = quotedbl +keycode 41 = +keycode 42 = Shift +keycode 43 = +keycode 44 = z + altgr keycode 44 = bar +keycode 45 = x +keycode 46 = c +keycode 47 = v +keycode 48 = b + altgr keycode 48 = minus +keycode 49 = n + altgr keycode 49 = plus +keycode 50 = m + altgr keycode 50 = equal +keycode 51 = comma + altgr keycode 51 = parenright + shift keycode 51 = semicolon +keycode 52 = period + shift keycode 52 = colon + altgr keycode 52 = less + +keycode 53 = slash + shift keycode 53 = question + altgr keycode 53 = Num_Lock + +keycode 54 = Shift +keycode 55 = +keycode 56 = Alt +keycode 57 = space space + control keycode 57 = nul +keycode 59 = F9 +keycode 60 = F10 +keycode 61 = AltGr +keycode 62 = Escape +keycode 63 = Return +keycode 64 = Escape +keycode 65 = Down +keycode 66 = Up +keycode 67 = Control +keycode 68 = F13 +keycode 79 = F15 +keycode 80 = F16 +keycode 82 = F17 +keycode 87 = Return +keycode 88 = F11 +keycode 97 = Control +keycode 99 = F12 +keycode 103 = Up +keycode 105 = Left + altgr keycode 105 = Decr_Console +keycode 106 = Right + altgr keycode 106 = Incr_Console +keycode 108 = Down +string F1 = "\033[[A" +string F2 = "\033[[B" +string F3 = "\033[[C" +string F4 = "\033[[D" +string F5 = "\033[[E" +string F6 = "\033[17~" +string F7 = "\033[18~" +string F8 = "\033[19~" +string F9 = "\033[20~" +string F10 = "\033[21~" +string F11 = "\033[23~" +string F12 = "\033[24~" +string F13 = "\033[25~" +string F14 = "\033[26~" +string F15 = "\033[28~" +string F16 = "\033[29~" +string F17 = "\033[31~" +string F18 = "\033[32~" +string F19 = "\033[33~" +string F20 = "\033[34~" +string Find = "\033[1~" +string Insert = "\033[2~" +string Remove = "\033[3~" +string Select = "\033[4~" +string Prior = "\033[5~" +string Next = "\033[6~" +string Macro = "\033[M" +string Pause = "\033[P" +compose '`' 'A' to 'À' +compose '`' 'a' to 'à' +compose '\'' 'A' to 'Á' +compose '\'' 'a' to 'á' +compose '^' 'A' to 'Â' +compose '^' 'a' to 'â' +compose '~' 'A' to 'Ã' +compose '~' 'a' to 'ã' +compose '"' 'A' to 'Ä' +compose '"' 'a' to 'ä' +compose 'O' 'A' to 'Å' +compose 'o' 'a' to 'å' +compose '0' 'A' to 'Å' +compose '0' 'a' to 'å' +compose 'A' 'A' to 'Å' +compose 'a' 'a' to 'å' +compose 'A' 'E' to 'Æ' +compose 'a' 'e' to 'æ' +compose ',' 'C' to 'Ç' +compose ',' 'c' to 'ç' +compose '`' 'E' to 'È' +compose '`' 'e' to 'è' +compose '\'' 'E' to 'É' +compose '\'' 'e' to 'é' +compose '^' 'E' to 'Ê' +compose '^' 'e' to 'ê' +compose '"' 'E' to 'Ë' +compose '"' 'e' to 'ë' +compose '`' 'I' to 'Ì' +compose '`' 'i' to 'ì' +compose '\'' 'I' to 'Í' +compose '\'' 'i' to 'í' +compose '^' 'I' to 'Î' +compose '^' 'i' to 'î' +compose '"' 'I' to 'Ï' +compose '"' 'i' to 'ï' +compose '-' 'D' to 'Ð' +compose '-' 'd' to 'ð' +compose '~' 'N' to 'Ñ' +compose '~' 'n' to 'ñ' +compose '`' 'O' to 'Ò' +compose '`' 'o' to 'ò' +compose '\'' 'O' to 'Ó' +compose '\'' 'o' to 'ó' +compose '^' 'O' to 'Ô' +compose '^' 'o' to 'ô' +compose '~' 'O' to 'Õ' +compose '~' 'o' to 'õ' +compose '"' 'O' to 'Ö' +compose '"' 'o' to 'ö' +compose '/' 'O' to 'Ø' +compose '/' 'o' to 'ø' +compose '`' 'U' to 'Ù' +compose '`' 'u' to 'ù' +compose '\'' 'U' to 'Ú' +compose '\'' 'u' to 'ú' +compose '^' 'U' to 'Û' +compose '^' 'u' to 'û' +compose '"' 'U' to 'Ü' +compose '"' 'u' to 'ü' +compose '\'' 'Y' to 'Ý' +compose '\'' 'y' to 'ý' +compose 'T' 'H' to 'Þ' +compose 't' 'h' to 'þ' +compose 's' 's' to 'ß' +compose '"' 'y' to 'ÿ' +compose 's' 'z' to 'ß' +compose 'i' 'j' to 'ÿ' diff --git a/packages/initscripts/initscripts-1.0/uml/.mtn2git_empty b/packages/initscripts/initscripts-1.0/uml/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/uml/.mtn2git_empty diff --git a/packages/initscripts/initscripts-1.0/uml/devices b/packages/initscripts/initscripts-1.0/uml/devices index fc1d96788b..fc1d96788b 100644..100755 --- a/packages/initscripts/initscripts-1.0/uml/devices +++ b/packages/initscripts/initscripts-1.0/uml/devices diff --git a/packages/initscripts/initscripts-1.0/umountfs b/packages/initscripts/initscripts-1.0/umountfs index e69de29bb2..ec75b0c4a4 100644..100755 --- a/packages/initscripts/initscripts-1.0/umountfs +++ b/packages/initscripts/initscripts-1.0/umountfs @@ -0,0 +1,18 @@ +#! /bin/sh +# +# umountfs Turn off swap and unmount all local filesystems. +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +echo "Deactivating swap..." +swapoff -a + +# We leave /proc mounted. +echo "Unmounting local filesystems..." +mount -o remount,ro /mnt/ram +umount -f -a -r + +mount -o remount,ro / + +: exit 0 diff --git a/packages/initscripts/initscripts-1.0/umountnfs.sh b/packages/initscripts/initscripts-1.0/umountnfs.sh index e69de29bb2..f5fe48aa74 100644..100755 --- a/packages/initscripts/initscripts-1.0/umountnfs.sh +++ b/packages/initscripts/initscripts-1.0/umountnfs.sh @@ -0,0 +1,28 @@ +#! /bin/sh +# +# umountnfs.sh Unmount all network filesystems. +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +# Write a reboot record to /var/log/wtmp before unmounting +halt -w + +echo "Unmounting remote filesystems..." + +test -f /etc/fstab && ( + +# +# Read through fstab line by line and unount network file systems +# +while read device mountpt fstype options +do + if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs + then + umount -f $mountpt + fi +done +) < /etc/fstab + +: exit 0 + diff --git a/packages/initscripts/initscripts-1.0/urandom b/packages/initscripts/initscripts-1.0/urandom index e69de29bb2..45c41d758b 100644..100755 --- a/packages/initscripts/initscripts-1.0/urandom +++ b/packages/initscripts/initscripts-1.0/urandom @@ -0,0 +1,41 @@ +#! /bin/sh +# +# urandom This script saves the random seed between reboots. +# It is called from the boot, halt and reboot scripts. +# +# Version: @(#)urandom 1.33 22-Jun-1998 miquels@cistron.nl +# + +test -c /dev/urandom || exit 0 +. /etc/default/rcS + +case "$1" in + start|"") + test "$VERBOSE" != no && echo "Initializing random number generator..." + # Load and then save 512 bytes, + # which is the size of the entropy pool + if test -f /var/lib/urandom/random-seed + then + cat /var/lib/urandom/random-seed >/dev/urandom + fi + rm -f /var/lib/urandom/random-seed + umask 077 + dd if=/dev/urandom of=/var/lib/urandom/random-seed count=1 \ + >/dev/null 2>&1 || echo "urandom start: failed." + umask 022 + ;; + stop) + # Carry a random seed from shut-down to start-up; + # see documentation in linux/drivers/char/random.c + test "$VERBOSE" != no && echo "Saving random seed..." + umask 077 + dd if=/dev/urandom of=/var/lib/urandom/random-seed count=1 \ + >/dev/null 2>&1 || echo "urandom stop: failed." + ;; + *) + echo "Usage: urandom {start|stop}" >&2 + exit 1 + ;; +esac + +exit 0 |