◄  ▲  ► |
#!/bin/bash
# Too many commands will need superuser rights, so demand root!
if [ "$USER" != "root" ]; then
echo "You must run this script as root."
exit
fi
# Unmount the floppy just in case it's mounted
sync;sync
umount -r /dev/fd0 2> /dev/null
umount -l /dev/fd0 2> /dev/null
# Unmount the tempfs mount point just in case it was left mounted by script crash
umount -r tempfs 2> /dev/null
umount -l tempfs 2> /dev/null