6 curl -s 'https://raw.githubusercontent.com/instantOS/instantLOGO/master/ascii.txt' | sed 's/^/ /g'
10 if ! whoami | grep -iq '^root'; then
11 echo "please run this as root"
15 if ! command -v imenu; then
16 curl -s https://raw.githubusercontent.com/instantOS/imenu/master/imenu.sh >/usr/local/bin/imenu
17 chmod 755 /usr/local/bin/imenu
22 # only runs on arch based distros
23 if ! grep -Eiq '(arch|manjaro)' /etc/os-release; then
24 echo "system does not appear to be arch based.
25 instantARCH only works on arch based systems like Arch and Manjaro
26 are you sure you want to run this?" | imenu -C || {
27 imenu -m "installation canceled"
34 pacman -Sy --noconfirm
38 pacman -S git --noconfirm --needed
41 [ -e instantARCH ] && rm -rf instantARCH
42 git clone --depth=1 https://github.com/instantos/instantARCH.git
52 # do all actions requiring user input first
55 if ! command -v mhwd && iroot automirror; then
56 pacman -S reflector --noconfirm --needed
57 echo "selecting fastest mirror"
58 reflector --latest 40 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
59 pacman -Sy --noconfirm
64 pacman -S --noconfirm --needed base \
66 linux-lts linux-lts-headers \
73 ./bootloader/config.sh
75 if ! ls /home/ | grep -q ..; then
84 ./instantos/install.sh
86 echo "finished installing instantOS"
87 imenu -c "a reboot is required. reboot now?" && touch /tmp/instantosreboot
90 [ -e /usr/local/bin/imenu ] && rm /usr/local/bin/imenu
91 [ -e /tmp/instantosreboot ] && reboot