Services move to /service fixes

- Fix init rights not adjusted at boot time

 - Fix usbd not loaded on BBB / BBW

Change-Id: Ic690547876d486165e74c749a4fe43891d0e1e8d
This commit is contained in:
Lionel Sambuc 2014-08-08 17:50:03 +02:00
parent 17eed55f28
commit 8edaaa301c
2 changed files with 7 additions and 2 deletions

5
etc/rc
View file

@ -59,6 +59,11 @@ edit()
if [ ! -x $binlocation ]
then binlocation=/usr/pkg/service/$service
fi
# Mostly to find init...
if [ ! -x $binlocation ]
then binlocation=/sbin/$service
fi
service $opt edit $binlocation -label $service "$@"
}

View file

@ -282,7 +282,7 @@ start|autoboot)
# fb hasn't been ported to AM335X yet.
fi
if [ -e /usr/sbin/usbd ]
if [ -e /service/usbd ]
then
echo "Starting USBD"
up usbd
@ -315,7 +315,7 @@ 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 ]
if [ -e /service/usbd ]
then
echo "Starting USBD"
up usbd