add force option

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-08-14 14:08:50 +02:00
parent b99e5f9c7a
commit abaee7e327

View file

@ -38,5 +38,9 @@ alias net-pf-31 off
eof eof
echo "You have to reboot your system (press enter to do so)" echo "You have to reboot your system (press enter to do so)"
read rebootme
# reboot directly, if there's -f
if [ "$1" != "-f" ]; then
read rebootme
fi
reboot reboot