3 ###############################################################################
4 ## add repo containing instantOS programs and required prebuilt aur programs ##
5 ###############################################################################
7 echo "adding instantOS repo"
10 if ! grep -q '\[instant\]' /etc/pacman.conf; then
12 echo "[instant]" >>/etc/pacman.conf
13 echo "SigLevel = Optional TrustAll" >>/etc/pacman.conf
14 echo "Include = /etc/pacman.d/instantmirrorlist" >>/etc/pacman.conf
15 if [ -e /usr/share/instantutils/mirrors/"$1" ]; then
16 cat /usr/share/instantutils/mirrors/"$1" >/etc/pacman.d/instantmirrorlist
18 curl -s https://raw.githubusercontent.com/instantOS/instantOS/master/mirrors/"$1" >/etc/pacman.d/instantmirrorlist
21 echo "instantOS $1 repository already added"
26 if uname -m | grep -q '^x'; then
27 # default is 64 bit repo
29 elif uname -m | grep 'arm'; then
30 echo "no official arm repo yet"
33 elif uname -m | grep '^i'; then
34 echo "no official 32 bit repo yet"
38 echo "no suitable repo for architecture found"