OSDN Git Service

init.sh: don't try to load the dummy camera driver
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 3 Jun 2016 04:05:58 +0000 (12:05 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 3 Jun 2016 04:05:58 +0000 (12:05 +0800)
Now the camera app will be hidden if no camera device is found.
So remove the obsolete code.

init.sh

diff --git a/init.sh b/init.sh
index eacf3bb..20161d6 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -68,7 +68,7 @@ function init_hal_bluetooth()
 
 function init_hal_camera()
 {
-       [ -c /dev/video0 ] || modprobe vivi
+       return
 }
 
 function init_hal_gps()