aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/init.rootfs59
1 files changed, 0 insertions, 59 deletions
diff --git a/scripts/init.rootfs b/scripts/init.rootfs
deleted file mode 100644
index 19757b8..0000000
--- a/scripts/init.rootfs
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
-export HOME='/root'
-export PS1='\w \h\$ '
-UDHCPC_ARGS=
-
-mkdir -p /dev /proc /sys
-mount -t devtmpfs none /dev -o size=4k
-mount -t proc none /proc
-mount -t sysfs none /sys
-mount -t debugfs nodev /sys/kernel/debug
-
-if [ x"$(command -v klogd)" != x ]; then
- $(command -v klogd)
-fi
-if [ x"$(command -v syslogd)" != x ]; then
- $(command -v syslogd) -C
- UDHCPC_ARGS='-S'
-fi
-
-echo '4 4 1 7' >/proc/sys/kernel/printk
-cat <<EOF
-
-
-Boot took $(cut -d' ' -f1 /proc/uptime) seconds
-
- _ _ __ _
- /\/\ (_)_ __ (_) / /(_)_ __ _ ___ __
- / \| | '_ \| | / / | | '_ \| | | \ \/ /
-/ /\/\ \ | | | | | / /__| | | | | |_| |> <
-\/ \/_|_| |_|_| \____/_|_| |_|\__,_/_/\_\
-
-
-Welcome to mini_linux
-
-
-EOF
-
-for arg in $(cat /proc/cmdline | tr '[:upper:]' '[:lower:]'); do
- if [ x"${arg}" = xip4 ]; then
- sysctl -w net.ipv6.conf.all.disable_ipv6=1
- fi
-done
-
-for arg in $(cat /proc/cmdline | tr '[:upper:]' '[:lower:]'); do
- if [ x"$(command -v udhcpc)" != x -a x"${arg}" = xnet ]; then
- echo '*** INIT NETWORK ***'
- for netif in $(ls /sys/class/net); do
- ifconfig ${netif} 0.0.0.0 up
- done
- $(command -v udhcpc) -R ${UDHCPC_ARGS}
- fi
-done
-
-hostname minlin
-loadkmap </usr/share/keymaps/i386/qwertz/de-latin1.bmap
-cd ${HOME}
-setsid cttyhack sh
-poweroff -f