manjaro-architect.in 1.07 KB
Newer Older
1 2
# !/bin/bash
#
3
# Architect Installation Framework (2016-2017)
4
#
5 6 7
# 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.
8 9 10 11 12
#
# 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.

Bernhard Landauer's avatar
Bernhard Landauer committed
13 14 15 16 17
version=@version@

LIBDIR='@libdir@'
DATADIR='@datadir@'

Bernhard Landauer's avatar
Bernhard Landauer committed
18 19
[[ -r ${LIBDIR}/util.sh ]] && source ${LIBDIR}/util.sh

20
import ${LIBDIR}/ini_val.sh
Bernhard Landauer's avatar
Bernhard Landauer committed
21
import ${LIBDIR}/util-base.sh
Bernhard Landauer's avatar
Bernhard Landauer committed
22
import ${LIBDIR}/util-desktop.sh
Bernhard Landauer's avatar
Bernhard Landauer committed
23
import ${LIBDIR}/util-disk.sh
24
import ${LIBDIR}/util-menu.sh
25
import ${DATADIR}/translations/english.trans
26

27 28 29 30 31
if [[ -e /run/miso/bootmnt ]]; then
    if [[ -e /usr/bin/maia-console ]]; then
        [[ ! -e ~/.dialogrc ]] && cp /etc/skel/.dialogrc ~/.dialogrc
    fi
fi
32

Bernhard Landauer's avatar
Bernhard Landauer committed
33
# run in debug mode with -d option
34
[[ $1 == "-d" ]] && declare -i debug=1
Bernhard Landauer's avatar
Bernhard Landauer committed
35

Bernhard Landauer's avatar
Bernhard Landauer committed
36
setterm -blank 0 -powersave off
37
id_system
38
set_language
39 40 41
mk_connection
check_requirements
greeting
42
main_menu