forked from niizam/vantage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
31 lines (25 loc) · 799 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# check for the distro
if [ -f /etc/os-release ]; then
. /etc/os-release
distro=$ID
fi
case $distro in
"arch" | "manjaro")
echo "Installing on Arch Linux or derivative"
pacman -Qi zenity xorg-xinput networkmanager &> /dev/null || sudo pacman -S zenity xorg-xinput networkmanager
;;
"ubuntu" | "debian" | "linuxmint" | "pop" | "elementary")
echo "Installing on Debian or derivative"
dpkg -s zenity xinput &> /dev/null || sudo apt install zenity xinput
;;
"fedora")
echo "Installing on Fedora"
rpm -q zenity xinput NetworkManager pipewire-pulseaudio &> /dev/null || sudo dnf install zenity xinput NetworkManager pipewire-pulseaudio
;;
*)
echo "Unknown Distro, exiting."
exit 1
;;
esac
echo "Requirements are installed"