setup 1.31 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
# !/bin/bash
#
# Architect Installation Framework (2016-2017)
#
# Written by Carl Duff and @mandog for Archlinux
# Heavily modified and re-written by @Chrysostomus to install Manjaro instead
# Contributors: @papajoker, @oberon and the Manjaro-Community.
#
# This program is free software, provided under the GNU General Public License
# as published by the Free Software Foundation. So feel free to copy, distribute,
# or modify it as you wish.
12

Bernhard Landauer's avatar
Bernhard Landauer committed
13
[[ -e /run/miso/bootmnt ]] && setfont ter-116n
14

Bernhard Landauer's avatar
Bernhard Landauer committed
15
while [[ ! $(ping -c 2 manjaro.org) ]]; do
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
    if [[ $(cat /proc/1/comm) == "systemd" ]];then
        if [[ $(systemctl is-active NetworkManager) == "active" ]]; then
            dialog --backtitle ":: Manjaro Architect ::" --yesno "\nPlease connect to the internet:\n" 0 0 && \
              clear && nmtui && continue || \
              clear && exit 0
        else
            dialog --backtitle ":: Manjaro Architect ::" --title " Error: " --msgbox "\nNo network service detected!\nquitting." 0 0 && \
              clear && exit 0
        fi
    else
        dialog --title " Error: " --msgbox "\nAn active internet connection is needed!\n" 0 0 && \
        clear && exit 0
    fi
done

echo "updating the installer ..."
sleep 1
sudo pacman -Sy manjaro-architect --noconfirm

echo "launching Manjaro Architect ..."
Bernhard Landauer's avatar
Bernhard Landauer committed
36
sudo manjaro-architect "$@"