Get rid of "clear" to stop it purging scroll-back buffer

This commit is contained in:
Martin D Kealey 2022-09-25 17:43:43 +10:00
parent 41212db551
commit 79f5dadec0
4 changed files with 0 additions and 11 deletions

View File

@ -120,8 +120,6 @@ managed_file_installation() {
# information that helps with bug reports
clear
# displays script name and version
printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION"

View File

@ -127,8 +127,6 @@ managed_file_installation() {
# information that helps with bug reports
clear
# displays script name and version
printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION"

View File

@ -19,7 +19,6 @@ then
exit 1
fi
clear
printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION"
# support for NoPrompt allows non-interactive use of this script

View File

@ -9,8 +9,6 @@ SCRIPT_VERSION=20220923
# There is no filename globbing in this script, so disable it to stop accidents
set -f
clear
# Check that sudo was used to start the script
if (( EUID != 0 ))
then
@ -59,7 +57,6 @@ get_if_info() {
print_if_info() {
local iface=$1 m n
clear
printf '\n --------------------------------\n'
printf ' %-20s %s\n' "${0##*/}" "$SCRIPT_VERSION"
printf ' --------------------------------\n'
@ -84,7 +81,6 @@ str_join() { local IFS="$2" ; printf -v "$1" %s "${*:3}" ; }
# Set $iface0 down
ip link set dev "$iface0" down || {
clear
printf '\n ERROR: Please provide an existing interface as parameter!\n'
printf ' Usage: $ sudo %s [interface:wlan0]\n' "$0"
printf ' Tip: $ iw dev\n\n'
@ -128,7 +124,6 @@ then
kill -STOP "${pids[@]}"
clear
printf '\n The following processes have been stopped:\n\n'
# ps -p takes a comma-separated list
@ -142,7 +137,6 @@ then
printf ' to a normal state at the end of this script.\n\n'
else
clear
printf '\n There are no processes that need stopping.\n\n'
fi