607a35770941e274625dfff616fb011fbf83e63b
[openwrt/svn-archive/archive.git] / utils / petitboot / files / petitboot-wrapper
1 #!/bin/sh
2
3 # wrapper script for petitboot - re-exec as required.
4 mkdir -p /var/tmp/mnt
5
6 while :
7 do
8 /usr/sbin/petitboot -u >/var/log/petitboot.log 2>&1
9
10 # cleanup
11 for dir in /var/tmp/mnt/*
12 do
13 umount "$dir"
14 rmdir "$dir"
15 done
16 done