summaryrefslogtreecommitdiffstats
path: root/modules.d/90mgalive/mgalive-shutdown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/90mgalive/mgalive-shutdown.sh')
-rw-r--r--modules.d/90mgalive/mgalive-shutdown.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules.d/90mgalive/mgalive-shutdown.sh b/modules.d/90mgalive/mgalive-shutdown.sh
index afb3f9a..d587fb0 100644
--- a/modules.d/90mgalive/mgalive-shutdown.sh
+++ b/modules.d/90mgalive/mgalive-shutdown.sh
@@ -1,8 +1,10 @@
-#!/bin/sh
-clear
+#!/usr/bin/sh
+
basedev=$(cat /run/mgalive/basedev)
if strstr "$basedev" "/dev/sr" ; then
+ exec < /dev/tty0 > /dev/tty0
eject $basedev
+ clear
echo "It is now safe to remove the Live medium"
echo "Press <Enter> to continue..."
read -t 30 a