initscripts : remove bootup.
[vuplus_openvuplus_3.0] / meta-bsp / common / recipes / vuplus / vuplus-bootlogo / vuplus-bootlogo.sysvinit
diff --git a/meta-bsp/common/recipes/vuplus/vuplus-bootlogo/vuplus-bootlogo.sysvinit b/meta-bsp/common/recipes/vuplus/vuplus-bootlogo/vuplus-bootlogo.sysvinit
new file mode 100644 (file)
index 0000000..c6afb46
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+SHOWIFRAME=/usr/bin/showiframe
+
+test -x $SHOWIFRAME || exit 0
+
+case "$1" in
+  start)
+    # first boot?
+    [ -f /etc/dropbear/dropbear_rsa_host_key ] && LOGO=bootlogo || LOGO=bootlogo_wait
+    echo -n "Displaying $LOGO"
+    (
+      while [ ! -c /dev/dvb/adapter0/video0 ]; do
+        usleep 100000
+      done
+      $SHOWIFRAME /usr/share/vuplus-bootlogo/$LOGO.mvi
+    ) &
+    echo "."
+    ;;
+  stop)
+    LOGO=/usr/share/vuplus-bootlogo/switchoff.mvi
+    [ -f $LOGO ] && $SHOWIFRAME $LOGO
+    ;;
+  restart)
+    ;;
+  *)
+    echo "Usage: /etc/init.d/vuplus-bootlogo {start|stop|restart}"
+    exit 1
+esac
+
+exit 0