f8b977d9de
Update the petitboot package to the latest version in the petitboot git repo. Add new build config options to allow selection of which of the petitboot user interface program to run at system boot. git-svn-id: svn://svn.openwrt.org/openwrt/packages@16762 3c298f89-4303-0410-b956-a3cf2f4a3e73
23 lines
345 B
Bash
23 lines
345 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
START=90
|
|
|
|
kill_discover() {
|
|
killall -q -KILL pb-discover
|
|
umount -f -d /var/petitboot/mnt/* 2>/dev/null
|
|
}
|
|
|
|
start() {
|
|
kill_discover
|
|
/usr/sbin/pb-discover 2>&- >&- &
|
|
}
|
|
|
|
stop() {
|
|
# first signal pb-discover to exit
|
|
killall -q -INT pb-discover
|
|
sleep 3
|
|
# now force it
|
|
kill_discover
|
|
}
|