summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2024-04-20 22:46:01 +0200
committerJybz <j.biernacki@free.fr>2024-04-20 22:46:01 +0200
commitb0126b46c3bdef0188d6acf16e9525736305e751 (patch)
tree01b01f239b67076fe6f31743d814f39e73e86b3f
parente42b25fd7c8aab281e11ac3b1f798534ba4885f7 (diff)
downloadmageia-dracut-conf-b0126b46c3bdef0188d6acf16e9525736305e751.tar
mageia-dracut-conf-b0126b46c3bdef0188d6acf16e9525736305e751.tar.gz
mageia-dracut-conf-b0126b46c3bdef0188d6acf16e9525736305e751.tar.bz2
mageia-dracut-conf-b0126b46c3bdef0188d6acf16e9525736305e751.tar.xz
mageia-dracut-conf-b0126b46c3bdef0188d6acf16e9525736305e751.zip
Updated to ensure shutdown message is displayed on current tty.
- origin: https://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0511-mgalive-A-module-to-mount-Mageia-Live-media.patch?r1=1653914&r2=1663927 - mgalive: ensure shutdown message is displayed on current tty
-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