basic installation covered

This commit is contained in:
2022-02-04 14:17:26 +01:00
parent 67b5efc78b
commit 235327794e
4 changed files with 162 additions and 2 deletions

16
xabs.sh
View File

@@ -1,6 +1,6 @@
#!/bin/sh
# Xavi's Script for lazy installs
# License: MIT
# License: MIT [FILL]
#
## OPTIONS ##
usage() { printf "helping" && exit 1; }
@@ -32,8 +32,20 @@ welcomemsg(){
dialog --title "Aloha!" --msgbox "hola" 10 60
}
error() { printf "%s\n" "$1" >&2; exit 1; }
## SCRIPT START ##
installpkg dialog || error "Are you root and have an active internet connection?"
# Check this is an Arch distro an we're root
pacman --noconfirm --needed -Sy dialog || error "Are you sure you're running this as the root user, are on an Arch-based distribution and have an internet connection?"
# Start prompt
welcomemsg || error "User exit."
# Check BOOT MODE
#installpkg dialog || error "Are you root and have an active internet connection?"
# Welcome everyone!
#welcomemsg || error "Exited"