3 ###############################################################################
4 ## add repo containing instantOS programs and required prebuilt aur programs ##
5 ###############################################################################
8 whoami | grep -q 'root' || { echo "please run this as root" && exit 1
11 echo "adding instantOS repos"
15 if grep -q '\[instant\]' /etc/pacman.conf; then
16 echo "removing old mirrors"
17 sed -i '/^\[instant\]/,+2d' /etc/pacman.conf
23 echo "SigLevel = Optional TrustAll"
24 echo "Include = /etc/pacman.d/instantmirrorlist"
27 if [ -e /usr/share/instantutils/mirrors/"$1" ]; then
28 cat /usr/share/instantutils/mirrors/"$1" >/etc/pacman.d/instantmirrorlist
30 curl -s https://raw.githubusercontent.com/instantOS/instantOS/master/mirrors/"$1" >/etc/pacman.d/instantmirrorlist
35 if uname -m | grep -q '^x'; then
36 # default is 64 bit repo
38 elif uname -m | grep 'arm'; then
39 echo "no official arm repo yet"
42 elif uname -m | grep '^i'; then
43 echo "no official 32 bit repo yet"
47 echo "no suitable repo for architecture found"
50 echo "done adding the instantos repository"