diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-05-29 13:25:27 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-05-29 13:25:27 +0100 |
| commit | 41cfa5e56467411151fccda3f46ec0f8ce95d173 (patch) | |
| tree | 0f3d085b41b2e533d59e87a93d1ae8711858baf1 | |
| parent | ecd5b6036c1a2428a616436e1ed95b7014375b24 (diff) | |
Add welcome message
| -rw-r--r-- | gohan.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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." |
