init: move shell execution from rcS to /etc/inittab
[qi-bootmenu-system/guyou.git] / rootfs-overlay / etc / init.d / rcS
blob3be9d93b526c43087ef08611e77c6f8992cf21bf
1 #!/bin/sh
3 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
4 export HOME=/home/root
5 export USER=root
6 export TSLIB_TSDEVICE=/dev/input/touchscreen0
7 export TSLIB_TSDEVICE=/dev/event1
8 export ELM_ENGINE=fb
9 export ELM_FONT_PATH=/usr/share/fonts
10 export EDITOR=/bin/vi
12 mount -t proc proc /proc
13 mount -t sysfs sysfs /sys
14 mount -t tmpfs tmpfs /tmp
15 mount -t tmpfs tmpfs /dev
16 mkdir /dev/pts
17 mount -t devpts devpts /dev/pts
18 #mkdir /dev/shm
19 #mount -t tmpfs tmpfs /dev/shm
20 echo /bin/mdev > /proc/sys/kernel/hotplug
21 mdev -s
23 [ ! -d /dev/input ] && mkdir /dev/input
25 cd $HOME
27 nice -n -20 dialog "HELLO WOLRD" &
29 sleep 5
31 /etc/init.d/syslog start
32 /etc/init.d/networking start
33 /etc/init.d/dropbear start