You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

129 lines
2.6 KiB

#!/bin/sh
. /etc/profile
. /etc/init.d/functions
. /etc/init.d/globals
SHOWINFO "start"
# system directories
SHOWINFO "creating system directories ..."
mount -t proc proc /proc
mount -t sysfs sys /sys
mount -t tmpfs tmp /tmp
mount -t tmpfs media /media
mount -t tmpfs mnt /mnt
for dir in epg movies music pictures streaming autofs plugins; do
mkdir -p /mnt/${dir}
done
mount -t tmpfs srv /srv
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
mkdir -p /dev/shm/usb
mount -t usbfs none /proc/bus/usb
mkdir -p /var/lib/nfs
mount -t tmpfs nfs /var/lib/nfs
mkdir -p /var/samba
mount -t tmpfs samba /var/samba
dmesg -n 1
# set dummy time
date -s "2017-01-01 00:00"
# directory for wireless drivers
mkdir -p /var/run/wpa_supplicant
# create cs-drivernodes
mknodes
service hostname start
# logging as much as possible
service syslogd start
LOGINFO "init frontpanel ..."
# Frontpanel
insmod cs_frontpanel.ko
# update
if [ -x /etc/init.d/stb_update.sh ]; then
/etc/init.d/stb_update.sh
fi
# update system
if [ -x /etc/init.d/sys_update.sh ]; then
/etc/init.d/sys_update.sh
fi
## mdev coldplug for node permissions
LOGINFO "mdev coldplug ..."
echo >/dev/mdev.seq
echo $(which mdev) > /proc/sys/kernel/hotplug
mdev -s
# initialize hardware
LOGINFO "init hardware ..."
dt -t"INIT HARDWARE"
insmod cnxt_kal.ko
insmod cnxt_base.ko init=1
if [ -e /var/etc/.scart_osd_fix ]; then
insmod cnxt_fb.ko cnxtfb_standalone=1 cnxtfb_width=720 cnxtfb_height=576 #PAL
elif [ -e /var/etc/.scart_osd_fix_wide ]; then
insmod cnxt_fb.ko cnxtfb_standalone=1 cnxtfb_width=1024 cnxtfb_height=576 #PAL widescreen
else
insmod cnxt_fb.ko cnxtfb_standalone=1 cnxtfb_width=1280 cnxtfb_height=720 #HDTV
fi
insmod cnxt_lnx.ko
insmod cnxt_alsa.ko
if [ -e /var/etc/.hddpower ]; then
insmod cs_control.ko hdd_power=1
else
insmod cs_control.ko
fi
insmod cnxt_i2c.ko
insmod cnxt_sata_drv.ko
LOGINFO "init drivers ..."
dt -t"INIT DRIVERS"
## fire up network/wlan
insmod 8712u.ko
insmod 8192cu.ko
insmod rt2870sta.ko
service networking start
service ntpdate start
# load rest of modules
insmod cifs.ko
insmod fuse.ko
insmod usbserial.ko
insmod ftdi_sio.ko
insmod pl2303.ko
insmod stv6110.ko verbose=0
insmod stv090x.ko verbose=0
insmod tda10023.ko
insmod avl2108.ko
insmod max2112.ko
insmod cs_frontend_prop.ko
insmod dvb-core.ko
insmod cs_frontend.ko
# say hi to everyone
dt -ls01
dt -ls02
dt -c
dt -t"BOOT NI-IMAGE"
# change default core pattern
echo "/tmp/core.%e.%p.%t" > /proc/sys/kernel/core_pattern
# starting services and daemons in order of the symlink names
LOGINFO "run initscripts start ..."
run_initscripts start
SHOWINFO "done"