]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:if present start usbd
authorKees Jongenburger <kees.jongenburger@gmail.com>
Mon, 26 May 2014 14:47:53 +0000 (16:47 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:40 +0000 (17:05 +0200)
Change-Id: Ide4079b993f9525d09a6a42dfb09b958dc546942

http://gerrit.minix3.org/#/c/2695/

etc/rc
etc/usr/rc

diff --git a/etc/rc b/etc/rc
index dcff4d1143a1abe0abbbad8bc02f7342932fc3b6..b030077ba04a9d61517e124a29d199fe7b39aa30 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -200,6 +200,11 @@ down|stop)
        /usr/pkg/etc/rc.d/usbd stop
     fi
 
+    if [ -x /usr/sbin/usbd ]
+    then
+       service down usbd
+    fi
+
     # Tell RS server we're going down.
     service shutdown
     ;;
index 225bb6c0e2c470aa0a60e992df51393677446a65..e7581d4869f924fb0cbe8457c35da6f323593edb 100644 (file)
@@ -282,6 +282,11 @@ start|autoboot)
                                # fb hasn't been ported to AM335X yet.
                        fi
 
+                       if [ -e /usr/sbin/usbd ]
+                       then
+                               echo "Starting USBD"
+                               up usbd
+                       fi
                        # Detect expansion boards and start drivers.
                        capemgr
 
@@ -310,6 +315,11 @@ start|autoboot)
                        #up fb -dev /dev/fb0 -args edid.0=tda19988.1.3470
                        # fb hasn't been ported to AM335X yet.
 
+                       if [ -e /usr/sbin/usbd ]
+                       then
+                               echo "Starting USBD"
+                               up usbd
+                       fi
                        # Detect expansion boards and start drivers.
                        capemgr