2017-01-17 16:45:43 +00:00
|
|
|
# !/bin/bash
|
|
|
|
#
|
|
|
|
# Architect Installation Framework (version 2.3.1 - 26-Mar-2016)
|
|
|
|
#
|
|
|
|
# Written by Carl Duff for Architect Linux
|
|
|
|
#
|
|
|
|
# Modified by Chrysostomus to install manjaro instead
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
2017-02-17 04:19:17 +00:00
|
|
|
id_system
|
|
|
|
select_language
|
|
|
|
mk_connection
|
|
|
|
check_requirements
|
|
|
|
greeting
|
2017-01-17 16:45:43 +00:00
|
|
|
|
|
|
|
main_menu_online() {
|
2017-02-13 17:13:21 +00:00
|
|
|
if [[ $HIGHLIGHT != 9 ]]; then
|
|
|
|
HIGHLIGHT=$(( HIGHLIGHT + 1 ))
|
|
|
|
fi
|
2017-01-17 16:45:43 +00:00
|
|
|
|
2017-02-17 02:04:59 +00:00
|
|
|
DIALOG " $_MMTitle " --default-item ${HIGHLIGHT} \
|
2017-02-13 17:13:21 +00:00
|
|
|
--menu "$_MMBody" 0 0 9 \
|
2017-02-14 20:58:01 +00:00
|
|
|
"1" "$_PrepMenuTitle|>" \
|
|
|
|
"2" "$_InstBsMenuTitle|>" \
|
|
|
|
"3" "$_InstGrMenuTitle|>" \
|
|
|
|
"4" "$_ConfBseMenuTitle|>" \
|
|
|
|
"5" "$_InstNMMenuTitle|>" \
|
|
|
|
"6" "$_InstMultMenuTitle|>" \
|
|
|
|
"7" "$_SecMenuTitle|>" \
|
|
|
|
"8" "$_SeeConfOptTitle|>" \
|
2017-02-13 17:13:21 +00:00
|
|
|
"9" "$_Done" 2>${ANSWER}
|
2017-01-17 16:45:43 +00:00
|
|
|
|
|
|
|
HIGHLIGHT=$(cat ${ANSWER})
|
|
|
|
|
|
|
|
# Depending on the answer, first check whether partition(s) are mounted and whether base has been installed
|
|
|
|
if [[ $(cat ${ANSWER}) -eq 2 ]]; then
|
|
|
|
check_mount
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $(cat ${ANSWER}) -ge 3 ]] && [[ $(cat ${ANSWER}) -le 8 ]]; then
|
|
|
|
check_mount
|
|
|
|
check_base
|
|
|
|
fi
|
|
|
|
|
|
|
|
case $(cat ${ANSWER}) in
|
|
|
|
"1") prep_menu
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
2017-01-17 16:45:43 +00:00
|
|
|
"2") install_base_menu
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
2017-02-10 17:44:43 +00:00
|
|
|
"3") install_graphics_menu
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
2017-02-10 17:44:43 +00:00
|
|
|
"4") config_base_menu
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
2017-01-17 16:45:43 +00:00
|
|
|
"5") install_network_menu
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
2017-01-17 16:45:43 +00:00
|
|
|
"6") install_multimedia_menu
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
2017-01-17 16:45:43 +00:00
|
|
|
"7") security_menu
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
2017-01-17 16:45:43 +00:00
|
|
|
"8") edit_configs
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
|
|
|
*) dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "$_CloseInstBody" 0 0
|
|
|
|
if [[ $? -eq 0 ]]; then
|
2017-01-17 16:45:43 +00:00
|
|
|
umount_partitions
|
|
|
|
[[ -e /tmp/.openrc ]] && rm /tmp/.openrc
|
|
|
|
clear
|
|
|
|
exit 0
|
2017-02-13 17:13:21 +00:00
|
|
|
fi
|
2017-02-15 05:21:29 +00:00
|
|
|
;;
|
2017-01-17 16:45:43 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
main_menu_online
|
|
|
|
}
|
|
|
|
|
2017-02-13 17:13:21 +00:00
|
|
|
while true; do
|
|
|
|
main_menu_online
|
|
|
|
done
|