Compare commits

...

13 commits

Author SHA1 Message Date
Tobias Powalowski
6a65fbdd40 add management menu 2023-07-13 07:33:17 +02:00
Tobias Powalowski
2aefe0d788 add management menu 2023-07-13 07:30:46 +02:00
Tobias Powalowski
f12113b4dd add more description 2023-07-13 07:01:18 +02:00
Tobias Powalowski
4f60e903d4 add desktop 2023-07-13 06:55:13 +02:00
Tobias Powalowski
3fe0c14aa4 add desktop 2023-07-13 06:49:02 +02:00
Tobias Powalowski
ddfbe10571 add desktop 2023-07-13 06:46:21 +02:00
Tobias Powalowski
14c93ff585 add desktop 2023-07-13 06:44:50 +02:00
Tobias Powalowski
d2ef09d605 add desktop 2023-07-13 06:43:40 +02:00
Tobias Powalowski
e0d73e2f40 add desktop 2023-07-13 06:37:41 +02:00
Tobias Powalowski
e13dfc67dd add desktop 2023-07-13 06:36:18 +02:00
Tobias Powalowski
7c4126f8a8 insert empty line 2023-07-13 06:32:56 +02:00
Tobias Powalowski
663520db8f show MOTD after and ISSUE after leavin launcher 2023-07-13 06:31:53 +02:00
Tobias Powalowski
6d80ddd12b show MOTD after and ISSUE after leavin launcher 2023-07-13 06:30:31 +02:00
2 changed files with 46 additions and 9 deletions

View file

@ -12,6 +12,8 @@ Environment Changes:
- added grub bli efi module
- use BLAKE2b/b2sum instead of sha256sum
- shortened MOTD and init message
- ask basic environment settings on first login
- added launcher script
locale:
- fixed abort dialog
update:

View file

@ -15,24 +15,25 @@ _dialog() {
}
_dolauncher() {
_dialog --title " Main Menu " --menu "" 9 40 5 \
_dialog --title " Main Menu " --menu "" 10 40 6 \
"1" "Launch Archboot Setup" \
"2" "Launch Desktop Environment" \
"3" "Exit Program" 2>${_ANSWER}
"3" "Manage Archboot Environment" \
"4" "Exit Program" 2>${_ANSWER}
case $(cat ${_ANSWER}) in
"1")
[[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running
setup
exit 0 ;;
"2")
_LAUNCHER=""
update | grep -q Gnome && _LAUNCHER="${_LAUNCHER} GNOME Gnome"
update | grep -q KDE && _LAUNCHER="${_LAUNCHER} PLASMA KDE/Plasma"
update | grep -q Sway && _LAUNCHER="${_LAUNCHER} SWAY Sway"
update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE Xfce"
_LAUNCHER=()
update | grep -q Gnome && _LAUNCHER+=( "GNOME" "Gnome - Simple Beautiful Elegant" )
update | grep -q KDE && _LAUNCHER+=( "PLASMA" "KDE/Plasma - Simple By Default" )
update | grep -q Sway && _LAUNCHER+=( "SWAY" "Sway - Tiling Wayland Compositor" )
update | grep -q Xfce && _LAUNCHER+=( "XFCE" "Xfce - Leightweight Desktop" )
_ABORT=""
if [[ -n "${_LAUNCHER}" ]]; then
_dialog --title " Desktop Menu " --menu "" 10 30 6 ${_LAUNCHER} 2>${_ANSWER} || _ABORT=1
if [[ -n "${_LAUNCHER[@]}" ]]; then
_dialog --title " Desktop Menu " --menu "" 10 50 6 "${_LAUNCHER[@]}" 2>${_ANSWER} || _ABORT=1
else
_dialog --msgbox "Error:\nNo Desktop Environments available." 0 0
_ABORT=1
@ -69,6 +70,37 @@ _dolauncher() {
exit 0
;;
"3")
_LAUNCHER=()
update | grep -q full && _LAUNCHER+=( "FULL" "Switch To Full Arch Linux System" )
update | grep -q latest && _LAUNCHER+=( "UPDATE" "Update Archboot Environment" )
update | grep -q image && _LAUNCHER+=( "IMAGE" "Create New Images" )
_ABORT=""
if [[ -n "${_LAUNCHER[@]}" ]]; then
_dialog --title " Manage Archboot Menu " --menu "" 9 60 5 "${_LAUNCHER[@]}" 2>${_ANSWER} || _ABORT=1
else
_dialog --msgbox "Error:\nNo management options available." 0 0
_ABORT=1
fi
clear
[[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running
if [[ -n "${_ABORT}" ]]; then
exit 1
fi
_EXIT="$(cat ${_ANSWER})"
if [[ "${_EXIT}" == "FULL" ]]; then
update -full-system
elif [[ "${_EXIT}" == "UPDATE" ]]; then
if update | grep -q latest-install; then
update -latest-install
else
update -latest
fi
elif [[ "${_EXIT}" == "IMAGE" ]]; then
update -latest-image
fi
exit 0
;;
"4")
#shellcheck disable=SC2086
_dialog --title " EXIT MENU " --menu "" 9 30 5 \
"1" "Exit Program" \
@ -111,5 +143,8 @@ if ! _dolauncher; then
fi
[[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running
clear
agetty --show-issue
echo ""
cat /etc/motd
exit 0
# vim: set ts=4 sw=4 et: