openwrt_archive/utils/petitboot/files/petitboot.init
Geoff Levand db75a0f7cf petitboot: Update to petitboot to latest
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
2009-07-10 01:12:10 +00:00

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
}