From 16fd78edbc1c04eab8cf9ebf49594c3b28fd1b6c Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 5 Sep 2018 20:16:44 +0200 Subject: moved initscript from scripts/init.rootfs to skeleton/init Signed-off-by: Toni Uhlig --- scripts/init.rootfs | 59 ----------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 scripts/init.rootfs (limited to 'scripts') 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 < < -\/ \/_|_| |_|_| \____/_|_| |_|\__,_/_/\_\ - - -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