|
@ -22,15 +22,15 @@ if [ -x /etc/init.d/stb_update.sh ]; then |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# init system |
|
|
# init system |
|
|
SHOWINFO "creating and mounting system directories..." |
|
|
SHOWINFO "creating and mounting system directories ..." |
|
|
mount -t sysfs sys /sys |
|
|
mount -t sysfs sys /sys |
|
|
mount -t tmpfs tmp /tmp |
|
|
mount -t tmpfs tmp /tmp |
|
|
mount -t tmpfs media /media |
|
|
mount -t tmpfs media /media |
|
|
|
|
|
mount -t tmpfs srv /srv |
|
|
mount -t tmpfs mnt /mnt |
|
|
mount -t tmpfs mnt /mnt |
|
|
for dir in epg movies music pictures streaming autofs plugins; do |
|
|
for dir in autofs epg logos logos/events movies music pictures plugins; do |
|
|
mkdir -p /mnt/${dir} |
|
|
mkdir -p /mnt/${dir} |
|
|
done |
|
|
done |
|
|
mount -t tmpfs srv /srv |
|
|
|
|
|
mkdir -p /dev/pts |
|
|
mkdir -p /dev/pts |
|
|
mount -t devpts devpts /dev/pts |
|
|
mount -t devpts devpts /dev/pts |
|
|
mkdir -p /dev/shm/usb |
|
|
mkdir -p /dev/shm/usb |
|
@ -47,16 +47,17 @@ mkdir -p /var/samba |
|
|
mount -t tmpfs samba /var/samba |
|
|
mount -t tmpfs samba /var/samba |
|
|
|
|
|
|
|
|
# for wget |
|
|
# for wget |
|
|
mkdir -p /tmp/wget |
|
|
mkdir -p /var/run/wget |
|
|
|
|
|
|
|
|
|
|
|
# for wireless drivers |
|
|
|
|
|
mkdir -p /var/run/wpa_supplicant |
|
|
|
|
|
|
|
|
|
|
|
# set level of messages printed to console |
|
|
dmesg -n 1 |
|
|
dmesg -n 1 |
|
|
|
|
|
|
|
|
# set dummy date |
|
|
# set dummy date |
|
|
date -s "%(YEAR)-01-01 00:00" |
|
|
date -s "%(YEAR)-01-01 00:00" |
|
|
|
|
|
|
|
|
# directory for wireless drivers |
|
|
|
|
|
mkdir -p /var/run/wpa_supplicant |
|
|
|
|
|
|
|
|
|
|
|
# automatic restore |
|
|
# automatic restore |
|
|
if [ -e /var/backup_flash.tar.gz ]; then |
|
|
if [ -e /var/backup_flash.tar.gz ]; then |
|
|
/bin/restore_flash.sh |
|
|
/bin/restore_flash.sh |
|
@ -72,6 +73,7 @@ if [ -x /etc/init.d/var_update.sh ]; then |
|
|
/etc/init.d/var_update.sh |
|
|
/etc/init.d/var_update.sh |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# set hostname |
|
|
service hostname start |
|
|
service hostname start |
|
|
|
|
|
|
|
|
# logging as much as possible |
|
|
# logging as much as possible |
|
@ -106,7 +108,9 @@ load_module extra/frontpanel.ko |
|
|
|
|
|
|
|
|
create_node "cs_display" |
|
|
create_node "cs_display" |
|
|
ln -sf /dev/cs_display /dev/display |
|
|
ln -sf /dev/cs_display /dev/display |
|
|
dt -t"LOAD DRIVERS" |
|
|
|
|
|
|
|
|
LOGINFO "init drivers ..." |
|
|
|
|
|
dt -t"INIT DRIVERS" |
|
|
|
|
|
|
|
|
load_module kernel/drivers/media/dvb-core/dvb-core.ko |
|
|
load_module kernel/drivers/media/dvb-core/dvb-core.ko |
|
|
load_module extra/typhoon.ko |
|
|
load_module extra/typhoon.ko |
|
@ -143,6 +147,7 @@ mkdir -p /dev/input |
|
|
ln -sf /dev/cs_ir /dev/input/nevis_ir |
|
|
ln -sf /dev/cs_ir /dev/input/nevis_ir |
|
|
ln -sf /dev/cs_ir /dev/input/input0 |
|
|
ln -sf /dev/cs_ir /dev/input/input0 |
|
|
|
|
|
|
|
|
|
|
|
# fire up network/wlan |
|
|
service networking start |
|
|
service networking start |
|
|
service ntpdate start |
|
|
service ntpdate start |
|
|
|
|
|
|
|
|