basic installation covered
This commit is contained in:
16
xabs.sh
16
xabs.sh
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user