Merge pull request #3 from krobelus/master
Minor fixes & style improvements. Note: these changes have to be tested before the next release. Another note: don't forget to update the property file to point to the latest stable kernel.
This commit is contained in:
commit
46f4d20ae6
@ -23,44 +23,44 @@ chmod 1777 tmp
|
|||||||
|
|
||||||
cd etc
|
cd etc
|
||||||
|
|
||||||
touch bootscript.sh
|
cat > bootscript.sh << EOF
|
||||||
echo '#!/bin/sh' >> bootscript.sh
|
#!/bin/sh
|
||||||
echo 'dmesg -n 1' >> bootscript.sh
|
dmesg -n 1
|
||||||
echo 'mount -t devtmpfs none /dev' >> bootscript.sh
|
mount -t devtmpfs none /dev
|
||||||
echo 'mount -t proc none /proc' >> bootscript.sh
|
mount -t proc none /proc
|
||||||
echo 'mount -t sysfs none /sys' >> bootscript.sh
|
mount -t sysfs none /sys
|
||||||
echo >> bootscript.sh
|
EOF
|
||||||
|
|
||||||
chmod +x bootscript.sh
|
chmod +x bootscript.sh
|
||||||
|
|
||||||
touch welcome.txt
|
cat > welcome.txt << EOF
|
||||||
echo >> welcome.txt
|
|
||||||
echo ' #####################################' >> welcome.txt
|
|
||||||
echo ' # #' >> welcome.txt
|
|
||||||
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
|
# Welcome to "Minimal Linux Live" #
|
||||||
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
|
EOF
|
||||||
echo 'tty2::respawn:/bin/sh' >> inittab
|
|
||||||
echo 'tty3::once:cat /etc/welcome.txt' >> inittab
|
cat > inittab << EOF
|
||||||
echo 'tty3::respawn:/bin/sh' >> inittab
|
::sysinit:/etc/bootscript.sh
|
||||||
echo 'tty4::once:cat /etc/welcome.txt' >> inittab
|
::restart:/sbin/init
|
||||||
echo 'tty4::respawn:/bin/sh' >> inittab
|
::ctrlaltdel:/sbin/reboot
|
||||||
echo >> inittab
|
::once:cat /etc/welcome.txt
|
||||||
|
::respawn:/bin/cttyhack /bin/sh
|
||||||
|
tty2::once:cat /etc/welcome.txt
|
||||||
|
tty2::respawn:/bin/sh
|
||||||
|
tty3::once:cat /etc/welcome.txt
|
||||||
|
tty3::respawn:/bin/sh
|
||||||
|
tty4::once:cat /etc/welcome.txt
|
||||||
|
tty4::respawn:/bin/sh
|
||||||
|
EOF
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
touch init
|
|
||||||
echo '#!/bin/sh' >> init
|
echo '#!/bin/sh' >> init
|
||||||
echo 'exec /sbin/init' >> init
|
echo 'exec /sbin/init' >> init
|
||||||
echo >> init
|
|
||||||
chmod +x init
|
chmod +x init
|
||||||
|
|
||||||
cp ../../*.sh src
|
cp ../../*.sh src
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
rm -f minimal_linux_live.iso
|
rm -f minimal_linux_live.iso
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
./0_prepare.sh
|
sh 0_prepare.sh
|
||||||
./1_get_kernel.sh
|
sh 1_get_kernel.sh
|
||||||
./2_build_kernel.sh
|
sh 2_build_kernel.sh
|
||||||
./3_get_busybox.sh
|
sh 3_get_busybox.sh
|
||||||
./4_build_busybox.sh
|
sh 4_build_busybox.sh
|
||||||
./5_generate_rootfs.sh
|
sh 5_generate_rootfs.sh
|
||||||
./6_pack_rootfs.sh
|
sh 6_pack_rootfs.sh
|
||||||
./7_generate_iso.sh
|
sh 7_generate_iso.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user