#!/bin/sh clear basedev=$(cat /run/mgalive/basedev) if strstr "$basedev" "/dev/sr" ; then eject $basedev fi echo "It is now safe to remove the Live medium" echo "Press to continue..." read -t 30 a return 0