Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/i386 Enable basic command line editing in i386 insta...
details: https://anonhg.NetBSD.org/src/rev/6adc303ef05e
branches: trunk
changeset: 373459:6adc303ef05e
user: abs <abs%NetBSD.org@localhost>
date: Sat Feb 11 17:52:19 2023 +0000
description:
Enable basic command line editing in i386 installer shells
(Following the pattern in amd64)
When a user selects "exit installer" or hits ^Z in sysinst, the
calling install.sh runs a shell, plus shows a message indicating
they can type "exit" to return to the installer.
Add -E to the arguments to this shell, to enable command line editing,
(primarily for arrow keys, but basic emacs sequences will also work)
diffstat:
distrib/i386/cdroms/install.sh | 6 +++---
distrib/i386/installimage/install.sh | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r c657d9ea9945 -r 6adc303ef05e distrib/i386/cdroms/install.sh
--- a/distrib/i386/cdroms/install.sh Sat Feb 11 12:44:49 2023 +0000
+++ b/distrib/i386/cdroms/install.sh Sat Feb 11 17:52:19 2023 +0000
@@ -1,5 +1,5 @@
#! /bin/sh -m
-# $NetBSD: install.sh,v 1.4 2015/05/28 09:51:31 martin Exp $
+# $NetBSD: install.sh,v 1.5 2023/02/11 17:52:19 abs Exp $
#
# -
# Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
tput clear
echo "You have stopped sysinst, return to it by" \
"typing 'exit' or ^D."
- ${SHELL} -i
+ ${SHELL} -i -E
cmd="fg"
else
cmd=""
@@ -112,4 +112,4 @@
echo "TERM=${TERM}" > ${termfile}
echo
echo "To return to the installer, quit this shell by typing 'exit' or ^D."
-exec ${SHELL}
+exec ${SHELL} -E
diff -r c657d9ea9945 -r 6adc303ef05e distrib/i386/installimage/install.sh
--- a/distrib/i386/installimage/install.sh Sat Feb 11 12:44:49 2023 +0000
+++ b/distrib/i386/installimage/install.sh Sat Feb 11 17:52:19 2023 +0000
@@ -1,5 +1,5 @@
#! /bin/sh -m
-# $NetBSD: install.sh,v 1.2 2012/06/03 21:42:45 joerg Exp $
+# $NetBSD: install.sh,v 1.3 2023/02/11 17:52:19 abs Exp $
#
# -
# Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
tput clear
echo "You have stopped sysinst, return to it by" \
"typing 'exit' or ^D."
- ${SHELL} -i
+ ${SHELL} -i -E
cmd="fg"
else
cmd=""
@@ -112,4 +112,4 @@
echo "TERM=${TERM}" > ${termfile}
echo
echo "To return to the installer, quit this shell by typing 'exit' or ^D."
-exec ${SHELL}
+exec ${SHELL} -E
Home |
Main Index |
Thread Index |
Old Index