summaryrefslogtreecommitdiffstats
path: root/source/installer/sources/initrd/usr/lib/setup/setup
diff options
context:
space:
mode:
Diffstat (limited to 'source/installer/sources/initrd/usr/lib/setup/setup')
-rwxr-xr-xsource/installer/sources/initrd/usr/lib/setup/setup16
1 files changed, 15 insertions, 1 deletions
diff --git a/source/installer/sources/initrd/usr/lib/setup/setup b/source/installer/sources/initrd/usr/lib/setup/setup
index c8c2aeabd..5fc8a0e4b 100755
--- a/source/installer/sources/initrd/usr/lib/setup/setup
+++ b/source/installer/sources/initrd/usr/lib/setup/setup
@@ -2,7 +2,7 @@
#
# Copyright 1993, 1994, 1999 Patrick Volkerding, Moorhead, Minnesota USA
# Copyright 2001, 2003, 2004 Slackware Linux, Inc., Concord, CA
-# Copyright 2006, 2007, 2018, 2021 Patrick Volkerding, Sebeka, Minnesota USA
+# Copyright 2006, 2007, 2018, 2021, 2022 Patrick Volkerding, Sebeka, Minnesota USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -422,6 +422,20 @@ if [ -f ${T_PX}/etc/fstab ]; then
--msgbox "\nPlease remove the installation disc.\n" 7 40
fi
+ # Prompt the user to unplug the USB stick containing the Slackware
+ # media:
+ mountpoint -q /usb-stick && {
+ # Try to umount the USB stick, but ignore any errors (errors would typically be
+ # occur if the user has a shell open within the USB stick's mount point), since
+ # we'll be shutting down soon anyway.
+ sync
+ umount /usb-stick > /dev/null 2>&1
+ dialog \
+ --title "Unplug Slackware Installation Media USB Stick" \
+ --msgbox \
+ "\nYou may now physically unplug the Slackware Installation Media USB stick from the USB port.\n" 8 60
+ }
+
# Offer to reboot or drop to shell or power off.
exec 3>&1
installerexittype=$( dialog \