packages/utils/petitboot/files/petitboot-wrapper

17 lines
237 B
Plaintext
Raw Normal View History

#!/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