• Switched to "/sbin/init" and "/etc/inittab" boot configuration.
This commit is contained in:
parent
e1a84e397e
commit
d116c397c9
@ -1,4 +1,4 @@
|
||||
minimal
|
||||
Minimal Linux Live
|
||||
=======
|
||||
|
||||
Minimal Linux Live
|
||||
http://minimal.linux-bg.org
|
||||
|
@ -10,10 +10,20 @@ rm -f linuxrc
|
||||
mkdir dev
|
||||
mkdir etc
|
||||
mkdir proc
|
||||
mkdir root
|
||||
mkdir src
|
||||
mkdir sys
|
||||
mkdir tmp
|
||||
chmod 1777 tmp
|
||||
cd etc
|
||||
touch bootscript.sh
|
||||
echo '#!/bin/sh' >> bootscript.sh
|
||||
echo 'dmesg -n 1' >> bootscript.sh
|
||||
echo 'mount -t devtmpfs none /dev' >> bootscript.sh
|
||||
echo 'mount -t proc none /proc' >> bootscript.sh
|
||||
echo 'mount -t sysfs none /sys' >> bootscript.sh
|
||||
echo >> bootscript.sh
|
||||
chmod +x bootscript.sh
|
||||
touch welcome.txt
|
||||
echo >> welcome.txt
|
||||
echo ' #####################################' >> welcome.txt
|
||||
@ -22,21 +32,28 @@ echo ' # Welcome to "Minimal Linux Live" #' >> welcome.txt
|
||||
echo ' # #' >> welcome.txt
|
||||
echo ' #####################################' >> welcome.txt
|
||||
echo >> welcome.txt
|
||||
touch inittab
|
||||
echo '::sysinit:/etc/bootscript.sh' >> inittab
|
||||
echo '::restart:/sbin/init' >> inittab
|
||||
echo '::ctrlaltdel:/sbin/reboot' >> inittab
|
||||
echo '::once:cat /etc/welcome.txt' >> inittab
|
||||
echo '::respawn:/bin/cttyhack /bin/sh' >> inittab
|
||||
echo 'tty2::once:cat /etc/welcome.txt' >> inittab
|
||||
echo 'tty2::respawn:/bin/sh' >> inittab
|
||||
echo 'tty3::once:cat /etc/welcome.txt' >> inittab
|
||||
echo 'tty3::respawn:/bin/sh' >> inittab
|
||||
echo 'tty4::once:cat /etc/welcome.txt' >> inittab
|
||||
echo 'tty4::respawn:/bin/sh' >> inittab
|
||||
echo >> inittab
|
||||
cd ..
|
||||
touch init
|
||||
echo '#!/bin/sh' >> init
|
||||
echo 'dmesg -n 1' >> init
|
||||
echo 'mount -t devtmpfs none /dev' >> init
|
||||
echo 'mount -t proc none /proc' >> init
|
||||
echo 'mount -t sysfs none /sys' >> init
|
||||
echo 'cat /etc/welcome.txt' >> init
|
||||
echo 'while true' >> init
|
||||
echo 'do' >> init
|
||||
echo ' setsid cttyhack /bin/sh' >> init
|
||||
echo 'done' >> init
|
||||
echo 'exec /sbin/init' >> init
|
||||
echo >> init
|
||||
chmod +x init
|
||||
cp ../../*.sh src
|
||||
cp ../../.config src
|
||||
chmod +r src/*.sh
|
||||
chmod +r src/.config
|
||||
cd ../..
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user