summaryrefslogtreecommitdiffstats
path: root/modules.d
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2024-04-20 21:55:21 +0200
committerJybz <j.biernacki@free.fr>2024-04-20 21:55:21 +0200
commitba5c0cb7cd9fc28f1e58af4b735323197458a15f (patch)
treeae2d1b286416a3937bf44f112c80035532af4827 /modules.d
parentb0c359beed79a405fd7a33b05334097247199a50 (diff)
downloadmageia-dracut-conf-ba5c0cb7cd9fc28f1e58af4b735323197458a15f.tar
mageia-dracut-conf-ba5c0cb7cd9fc28f1e58af4b735323197458a15f.tar.gz
mageia-dracut-conf-ba5c0cb7cd9fc28f1e58af4b735323197458a15f.tar.bz2
mageia-dracut-conf-ba5c0cb7cd9fc28f1e58af4b735323197458a15f.tar.xz
mageia-dracut-conf-ba5c0cb7cd9fc28f1e58af4b735323197458a15f.zip
draklive: only pause on shutdown when really needed
- origin: https://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0511-mgalive-A-module-to-mount-Mageia-Live-media.patch?r1=1349671&r2=1361037
Diffstat (limited to 'modules.d')
-rw-r--r--modules.d/90mgalive/mgalive-shutdown.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules.d/90mgalive/mgalive-shutdown.sh b/modules.d/90mgalive/mgalive-shutdown.sh
index ae927c2..afb3f9a 100644
--- a/modules.d/90mgalive/mgalive-shutdown.sh
+++ b/modules.d/90mgalive/mgalive-shutdown.sh
@@ -3,9 +3,9 @@ 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
-echo "It is now safe to remove the Live medium"
-echo "Press <Enter> to continue..."
-read -t 30 a
return 0