summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rw-r--r--package/base-files/files/etc/init.d/boot27
-rw-r--r--package/base-files/files/etc/init.d/done4
-rwxr-xr-xpackage/base-files/files/etc/init.d/rcK21
-rwxr-xr-xpackage/base-files/files/etc/init.d/rcS10
4 files changed, 0 insertions, 62 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
deleted file mode 100644
index f71e46240..000000000
--- a/package/base-files/files/etc/init.d/boot
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-#INIT 10
-[[ $1 = autostart ]] || exit 0
-
-. /etc/functions.sh
-
-mkdir -p /var/log
-mkdir -p /var/run
-touch /var/log/lastlog
-touch /var/log/wtmp
-ln -s /var/tmp /tmp
-
-echo 0 > /proc/sys/kernel/printk
-
-HOSTNAME=
-[[ -s /etc/hostname ]] && HOSTNAME=$(cat /etc/hostname)
-HOSTNAME=${HOSTNAME%%.*}
-echo ${HOSTNAME:=linux} >/proc/sys/kernel/hostname
-
-chown 0:0 /tmp; chmod 1777 /tmp
-
-load_modules /etc/modules
-for f in /etc/modules.d/*; do
- [[ -e $f ]] && load_modules /etc/modules.d/*
- break
-done
-exit 0
diff --git a/package/base-files/files/etc/init.d/done b/package/base-files/files/etc/init.d/done
deleted file mode 100644
index e5b655bb6..000000000
--- a/package/base-files/files/etc/init.d/done
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-#INIT 98
-[[ $1 = autostart ]] && sysctl -p >&-
-exit 0
diff --git a/package/base-files/files/etc/init.d/rcK b/package/base-files/files/etc/init.d/rcK
deleted file mode 100755
index e94d1a296..000000000
--- a/package/base-files/files/etc/init.d/rcK
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-busybox reboot -d 60 -f & # just in caseā€¦
-{
- [[ -f /proc/diag/led/power ]] && echo f >/proc/diag/led/power
- test -e /etc/rc.shutdown && (/bin/sh /etc/rc.shutdown) 2>&1
- grep '^#INIT ' /etc/init.d/* | \
- sort -rnk2 | \
- while read line; do
- shebang=$(sed -n '1s/^#![ ]*//p' ${line%%:*})
- case $shebang in
- *[\ \ ]*) shebang=\'$(echo X"$shebang" | sed \
- -e 's/^X//' -e "s/'/'\\\\''/g" \
- -e 's/^\([^ ][^ ]*\)[ ]*$/\1/' \
- -e 's/^\([^ ][^ ]*\)[ ][ ]*\(..*\)$/\1 \2/' \
- -e 's/^\([^ ][^ ]*\) /\1'\'' '\''/')\' ;;
- esac
- ${shebang:-/bin/sh} ${line%%:*} autostop 2>&1
- done
- [[ -f /proc/diag/led/power ]] && echo 0 >/proc/diag/led/power
-} | logger -s -p 6 -t ''
diff --git a/package/base-files/files/etc/init.d/rcS b/package/base-files/files/etc/init.d/rcS
deleted file mode 100755
index fd56feebf..000000000
--- a/package/base-files/files/etc/init.d/rcS
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-{
- grep '^#INIT ' /etc/init.d/* | \
- sort -nk2 | \
- while read line; do
- /bin/sh ${line%%:*} autostart 2>&1
- done
- test -e /etc/init.d/boot.local && (/bin/sh /etc/init.d/boot.local) 2>&1
-} | logger -s -p 6 -t '' &