packages/utils/petitboot/files/petitboot-wrapper
nbd 883d094d3e petitboot: add missing file and fix cflags issues
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13718 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-22 15:14:16 +00:00

17 lines
237 B
Bash

#!/bin/sh
# wrapper script for petitboot - re-exec as required.
mkdir -p /var/tmp/mnt
while :
do
/usr/sbin/petitboot -u >/var/log/petitboot.log 2>&1
# cleanup
for dir in /var/tmp/mnt/*
do
umount "$dir"
rmdir "$dir"
done
done