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