Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/amd64 Enable basic command line editing in amd64 ins...



details:   https://anonhg.NetBSD.org/src/rev/dc63724998f6
branches:  trunk
changeset: 373082:dc63724998f6
user:      abs <abs%NetBSD.org@localhost>
date:      Mon Jan 16 15:00:03 2023 +0000

description:
Enable basic command line editing in amd64 installer shells

When a user selects "exist 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)

At this point this is only on amd64, as this is the port which is
least likely to be installing on particularly esoteric terminal
hardware, and is also likely to have the highest proportion of less
experienced users

diffstat:

 distrib/amd64/cdroms/install.sh            |  6 +++---
 distrib/amd64/installimage-bios/install.sh |  6 +++---
 distrib/amd64/installimage/install.sh      |  6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (75 lines):

diff -r cbb5c00fac00 -r dc63724998f6 distrib/amd64/cdroms/install.sh
--- a/distrib/amd64/cdroms/install.sh   Mon Jan 16 10:28:09 2023 +0000
+++ b/distrib/amd64/cdroms/install.sh   Mon Jan 16 15:00:03 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/01/16 15:00:03 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 cbb5c00fac00 -r dc63724998f6 distrib/amd64/installimage-bios/install.sh
--- a/distrib/amd64/installimage-bios/install.sh        Mon Jan 16 10:28:09 2023 +0000
+++ b/distrib/amd64/installimage-bios/install.sh        Mon Jan 16 15:00:03 2023 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh -m
-# $NetBSD: install.sh,v 1.2 2022/01/03 12:10:17 martin Exp $
+# $NetBSD: install.sh,v 1.3 2023/01/16 15:00:03 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 cbb5c00fac00 -r dc63724998f6 distrib/amd64/installimage/install.sh
--- a/distrib/amd64/installimage/install.sh     Mon Jan 16 10:28:09 2023 +0000
+++ b/distrib/amd64/installimage/install.sh     Mon Jan 16 15:00:03 2023 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh -m
-# $NetBSD: install.sh,v 1.3 2022/01/03 12:10:17 martin Exp $
+# $NetBSD: install.sh,v 1.4 2023/01/16 15:00:03 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