summaryrefslogtreecommitdiffstats
path: root/modules.d/90mgalive/mgalive-shutdown.sh
blob: afb3f9a61740609452c9039d325e549684cd4e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
clear
basedev=$(cat /run/mgalive/basedev)
if strstr "$basedev" "/dev/sr" ; then
    eject $basedev
    echo "It is now safe to remove the Live medium"
    echo "Press <Enter> to continue..."
    read -t 30 a
fi
return 0