db75a0f7cf
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. SVN-Revision: 16762
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
|
|
}
|