rescueOS/fs-overlay/rescueOS/umount-maemo-root.sh

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