2008-12-11 15:42:51 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2009-07-10 01:12:10 +00:00
|
|
|
|
|
|
|
START=90
|
|
|
|
|
|
|
|
kill_discover() {
|
|
|
|
killall -q -KILL pb-discover
|
|
|
|
umount -f -d /var/petitboot/mnt/* 2>/dev/null
|
|
|
|
}
|
2008-12-11 15:42:51 +00:00
|
|
|
|
|
|
|
start() {
|
2009-07-10 01:12:10 +00:00
|
|
|
kill_discover
|
|
|
|
/usr/sbin/pb-discover 2>&- >&- &
|
2008-12-11 15:42:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2009-07-10 01:12:10 +00:00
|
|
|
# first signal pb-discover to exit
|
|
|
|
killall -q -INT pb-discover
|
|
|
|
sleep 3
|
|
|
|
# now force it
|
|
|
|
kill_discover
|
2008-12-11 15:42:51 +00:00
|
|
|
}
|