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.

54 lines
1.1 KiB

#!/bin/sh
if [ -e /sys/class/net/sys0 ]; then
ifconfig sys0 up
fi
DRV_PATH=/lib/modules/`uname -r`/extra
if [ ! -e $DRV_PATH/dvb-bcm.ko ]; then
cd $DRV_PATH
ln -s dvb-bcm*.ko dvb-bcm.ko
fi
case "$1" in
start)
echo -n "Starting vuplus-platform-util"
if [ ! -e /dev/brcm0 ]; then
if [ -x /usr/bin/bp3flash.sh ]; then
/usr/bin/bp3flash.sh 2>/dev/null
fi
insmod $DRV_PATH/procmk.ko
insmod $DRV_PATH/bcm_event.ko
insmod $DRV_PATH/dvb_base.ko
start-stop-daemon --start --quiet --exec /usr/bin/dvb_server -- &
mknod -m a=rw /dev/brcm0 c 30 0
start-stop-daemon --start --quiet --exec /usr/bin/init_client $DRV_PATH/dvb-bcm.ko $DRV_PATH/brcmfb.ko -- &
fi
while [ ! -c /dev/fb0 ]; do
usleep 100000
done
if [ -e /usr/bin/initfb ]; then
/usr/bin/initfb $(sed -n 's/osd_resolution=//p' /var/tuxbox/config/neutrino.conf)
fi
if [ ! -e /dev/ciplus_ca0 ]; then
ln -s /dev/dvb/adapter0/ca3 /dev/ciplus_ca0
fi
echo "."
;;
stop)
;;
restart)
;;
*)
echo "Usage: /etc/init.d/vuplus-platform-util {start|stop|restart}"
exit 1
esac
exit 0