diff options
author | jkh <jkh@FreeBSD.org> | 1994-11-18 12:54:45 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-11-18 12:54:45 +0000 |
commit | 0694d388b9a3bd3da047cd0b4d4a8a4c0db0f059 (patch) | |
tree | 6d2644bd9b45b763d06f7e9e2906e417599ce8a3 /release/miscfuncs.sh | |
parent | b600470787ac5c1b875a9418043f03b7d4006b18 (diff) | |
download | FreeBSD-src-0694d388b9a3bd3da047cd0b4d4a8a4c0db0f059.zip FreeBSD-src-0694d388b9a3bd3da047cd0b4d4a8a4c0db0f059.tar.gz |
1. Unify my coding style.
2. Fix a couple of errors that kept media_install_set from working.
3. Fix another error that disabled media_select_distribution
Diffstat (limited to 'release/miscfuncs.sh')
-rw-r--r-- | release/miscfuncs.sh | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/release/miscfuncs.sh b/release/miscfuncs.sh index 0a8e700..a15e0d7 100644 --- a/release/miscfuncs.sh +++ b/release/miscfuncs.sh @@ -10,7 +10,7 @@ # putting your name on top after doing something trivial like reindenting # it, just to make it look like you wrote it!). # -# $Id: miscfuncs.sh,v 1.2 1994/11/17 11:53:14 jkh Exp $ +# $Id: miscfuncs.sh,v 1.3 1994/11/18 11:01:27 jkh Exp $ if [ "$_MISCFUNCS_SH_LOADED_" = "yes" ]; then return 0 @@ -38,7 +38,8 @@ SRCSIZE="120MB" SECRSIZE="4MB" COMPATSIZE="3MB" -interrupt() { +interrupt() +{ if dialog --clear --title "User Interrupt Requested" \ --yesno "Do you wish to abort the installation?" -1 -1; then exit 0; @@ -47,7 +48,8 @@ interrupt() { # Handle the return value from a dialog, doing some pre-processing # so that each client doesn't have to. -handle_rval() { +handle_rval() +{ case $1 in 0) return 0 @@ -62,22 +64,26 @@ handle_rval() { } # A simple user-confirmation dialog. -confirm() { +confirm() +{ dialog --title "User Confirmation" --msgbox "$*" -1 -1 } # A simple message box dialog. -message() { +message() +{ dialog --title "Progress" --infobox "$*" -1 -1 } # A simple error dialog. -error() { +error() +{ dialog --title "Error!" --msgbox "$*" -1 -1 } # Something isn't supported yet! :-( -not_supported() { +not_supported() +{ dialog --title "Sorry!" \ --msgbox "This feature is not supported in the current version of the \ installation tools. Barring some sort of fatal accident, we do \ |