mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
show correct options in manage archboot menu
This commit is contained in:
parent
5c58dd9f29
commit
545822746f
2 changed files with 4 additions and 13 deletions
|
@ -15,8 +15,8 @@ _check_desktop() {
|
|||
_check_manage() {
|
||||
_MANAGE=()
|
||||
update | grep -q full && _MANAGE+=( "FULL" "Switch To Full Arch Linux System" )
|
||||
update | grep -q latest && _MANAGE+=( "UPDATE" "Update Archboot Environment" )
|
||||
update | grep -q image && _MANAGE+=( "IMAGE" "Create New Archboot Images" )
|
||||
update | grep -q 'latest archboot' && _MANAGE+=( "UPDATE" "Update Archboot Environment" )
|
||||
update | grep -q image && _MANAGE+=( "IMAGE" "Create Archboot Images" )
|
||||
}
|
||||
|
||||
_desktop () {
|
||||
|
|
|
@ -196,18 +196,9 @@ if [[ -e /usr/bin/setup ]]; then
|
|||
if [[ ! -e /.pacsetup ]]; then
|
||||
pacsetup
|
||||
fi
|
||||
# switch for setup or launcher
|
||||
if [[ -e "${_CACHEDIR}/archboot.db" ]]; then
|
||||
if [[ ! -e /tmp/.setup ]]; then
|
||||
# run setup on local medium once!
|
||||
setup
|
||||
fi
|
||||
else
|
||||
# run launcher on latest/normal medium once!
|
||||
if [[ ! -e /.launcher ]]; then
|
||||
launcher
|
||||
fi
|
||||
fi
|
||||
# latest image, fail if less than 2GB RAM available
|
||||
elif [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 1970000 ]]; then
|
||||
_welcome
|
||||
|
|
Loading…
Reference in a new issue