rescueOS/rescueOS/umount-maemo-root.sh
2013-03-27 21:38:15 +01:00

12 lines
191 B
Bash
Executable File

#!/bin/sh
ermsg()
{
echo "Couldn't unmount. Most likely your fault. Are you in /mnt/maemo?";
exit;
}
sync
umount /mnt/maemo || ermsg
ubidetach /dev/ubi_ctrl -d 0
rm /run/maemo-root-mounted