summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-05-29 13:25:27 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-05-29 13:25:27 +0100
commit41cfa5e56467411151fccda3f46ec0f8ce95d173 (patch)
tree0f3d085b41b2e533d59e87a93d1ae8711858baf1
parentecd5b6036c1a2428a616436e1ed95b7014375b24 (diff)
Add welcome message
-rw-r--r--gohan.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/gohan.sh b/gohan.sh
index 1d45a6d..5ab6ba0 100644
--- a/gohan.sh
+++ b/gohan.sh
@@ -9,9 +9,18 @@ installpkg(){ pacman --noconfirm --needed -S "$1" >/dev/null 2>&1 ;}
error() { clear; printf "ERROR:\\n%s\\n" "$1"; exit;}
+welcomemsg() { \
+ dialog --title "Welcome!" --msgbox "Welcome to my Arch Linux installation script!\\n\\nThis script will automatically install a fully-featured Linux desktop, which I use as my main machine.\\n\\n-David" 10 60
+
+ dialog --colors --title "Important Note!" --yes-label "All ready!" --no-label "Return..." --yesno "Be sure the computer you are using has current pacman updates and refreshed Arch keyrings.\\n\\nIf it does not, the installation of some programs might fail." 8 70
+ }
+
### THE ACTUAL SCRIPT ###
### This is how everything happens in an intuitive format and order.
# Check if user is root on Arch distro. Install dialog.
installpkg dialog || error "Are you sure you're running this as the root user and have an internet connection?"
+
+# Welcome user.
+welcomemsg || error "User exited."