slitaz-arm rev 5

Add rootfs dir for custom files
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 24 22:33:13 2012 +0200 (2012-05-24)
parents f19661ea6119
children e885f2eb3b08
files rootfs/etc/init.d/rcS rootfs/etc/inittab rootfs/usr/bin/slitaz-arm.sh
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rootfs/etc/init.d/rcS	Thu May 24 22:33:13 2012 +0200
     1.3 @@ -0,0 +1,27 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +. /lib/libtaz.sh
     1.7 +
     1.8 +PATH=/bin:/sbin:/usr/bin:/usr/sbin
     1.9 +LD_LIBRARY_PATH=/usr/lib:/lib
    1.10 +export PATH LD_LIBRARY_PATH
    1.11 +
    1.12 +sleep 2
    1.13 +boldify "Executing: /etc/init.d/rcS"
    1.14 +
    1.15 +/bin/mount proc
    1.16 +/bin/mount -a
    1.17 +
    1.18 +/bin/hostname -F /etc/hostname
    1.19 +/sbin/ifconfig lo 127.0.0.1 up
    1.20 +/sbin/ifconfig eth0 up
    1.21 +/sbin/udhcpc -i eth0
    1.22 +
    1.23 +if [ -f "/usr/share/kmap/default.kmap" ]; then
    1.24 +	echo "Loading keymap..."
    1.25 +	/sbin/loadkmap < /usr/share/kmap/default.kmap
    1.26 +fi
    1.27 +
    1.28 +newline
    1.29 +colorize 32 "Welcome to SliTaz ARM"
    1.30 +newline
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/rootfs/etc/inittab	Thu May 24 22:33:13 2012 +0200
     2.3 @@ -0,0 +1,8 @@
     2.4 +# /etc/inittab: init configuration for SliTaz GNU/Linux.
     2.5 +#
     2.6 +::sysinit:/etc/init.d/rcS
     2.7 +#tty1::respawn:/sbin/getty 38400 tty1
     2.8 +::respawn:-/bin/sh -l
     2.9 +tty2::askfirst:-/bin/sh
    2.10 +::ctrlaltdel:/bin/umount -a -r
    2.11 +::ctrlaltdel:/sbin/reboot
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/rootfs/usr/bin/slitaz-arm.sh	Thu May 24 22:33:13 2012 +0200
     3.3 @@ -0,0 +1,13 @@
     3.4 +#/bin/sh
     3.5 +
     3.6 +log=/tmp/slitaz-arm.log
     3.7 +
     3.8 +echo "uname:" | tee $log
     3.9 +uname -a | tee -a $log
    3.10 +
    3.11 +echo "ls[pci/usb]:" | tee -a $log
    3.12 +lspci | tee -a $log
    3.13 +lsusb 2>&1 | tee -a $log
    3.14 +
    3.15 +echo "dmesg:"
    3.16 +dmesg | tee -a $log