arm:also start devmand on ARM.
Change-Id: Iceffd21d23efa45110a42ce2ab471c15cd6edf66 http://gerrit.minix3.org/#/c/2688/
This commit is contained in:
parent
c4a8cb3d4b
commit
3553b1a2f5
1 changed files with 19 additions and 25 deletions
44
etc/rc
44
etc/rc
|
@ -173,37 +173,31 @@ autoboot|start)
|
||||||
cp /usr/lib/em* /usr/lib/cpp* /lib
|
cp /usr/lib/em* /usr/lib/cpp* /lib
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ $ARCH = i386 ]
|
echo -n "Starting hotplugging infrastructure... "
|
||||||
then
|
rm -f /var/run/devmand.pid
|
||||||
echo -n "Starting hotplugging infrastructure... "
|
devmand -d /etc/devmand -d /usr/pkg/etc/devmand &
|
||||||
rm -f /var/run/devmand.pid
|
echo "done."
|
||||||
devmand -d /etc/devmand -d /usr/pkg/etc/devmand &
|
|
||||||
echo "done."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Things should be alright now.
|
# Things should be alright now.
|
||||||
;;
|
;;
|
||||||
down|stop)
|
down|stop)
|
||||||
sync
|
sync
|
||||||
if [ $ARCH = i386 ]
|
if [ -f /var/run/devmand.pid ]
|
||||||
then
|
then
|
||||||
if [ -f /var/run/devmand.pid ]
|
kill -INT `cat /var/run/devmand.pid`
|
||||||
then
|
# without this delay the following will
|
||||||
kill -INT `cat /var/run/devmand.pid`
|
# be printed in the console
|
||||||
# without this delay the following will
|
# RS: devman not running?
|
||||||
# be printed in the console
|
sleep 1
|
||||||
# RS: devman not running?
|
fi
|
||||||
sleep 1
|
#
|
||||||
fi
|
# usbd needs to be stopped exactly
|
||||||
#
|
# at this stage(before stopping devman
|
||||||
# usbd needs to be stopped exactly
|
# and after stopping the services
|
||||||
# at this stage(before stopping devman
|
# stated by devmand)
|
||||||
# and after stopping the services
|
if [ -x /usr/pkg/etc/rc.d/usbd ]
|
||||||
# stated by devmand)
|
then
|
||||||
if [ -x /usr/pkg/etc/rc.d/usbd ]
|
/usr/pkg/etc/rc.d/usbd stop
|
||||||
then
|
|
||||||
/usr/pkg/etc/rc.d/usbd stop
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Tell RS server we're going down.
|
# Tell RS server we're going down.
|
||||||
|
|
Loading…
Reference in a new issue