update driver(ultimo4k)
[vuplus_openvuplus_3.0] / meta-bsp / recipes-vuplus / vuplus-platform-util / files / vuplus-platform-util.sysvinit
1 #!/bin/sh
2
3 if [ -e /sys/class/net/sys0 ]; then
4   ifconfig sys0 up
5 fi
6
7 case "$1" in
8   start)
9     # first boot?
10     [ -f /etc/dropbear/dropbear_rsa_host_key ]
11     echo -n "Starting  vuplus-platform-util"
12     if [ ! -e /dev/brcm0 ]; then
13         DRV_PATH=/lib/modules/`uname -r`/extra
14         insmod $DRV_PATH/procmk.ko                           
15         insmod $DRV_PATH/bcm_event.ko                            
16         insmod $DRV_PATH/dvb_base.ko         
17                                                
18         start-stop-daemon --start --quiet --exec /usr/bin/dvb_server -- &
19                                                                        
20         mknod -m a=rw /dev/brcm0 c 30 0                                                                         
21                                                                                                                
22         start-stop-daemon --start --quiet --exec /usr/bin/init_client $DRV_PATH/dvb-bcm.ko $DRV_PATH/brcmfb.ko -- &
23     fi 
24
25     while [ ! -c /dev/fb0 ]; do
26         usleep 100000
27     done
28
29     echo "."
30     ;;
31   stop)
32     ;;
33   restart)
34     ;;
35   *)
36     echo "Usage: /etc/init.d/vuplus-platform-util {start|stop|restart}"
37     exit 1
38 esac
39
40 exit 0