first swap menus

This commit is contained in:
Marc Beninca 2023-11-23 19:29:33 +01:00
parent 738c2095d2
commit 86d12fe01f
5 changed files with 67 additions and 24 deletions

View file

@ -31,11 +31,13 @@ function env_apply {
fi
}
function env_default {
if [ "${1}" == 'check_squashfs' ] ; then default="_${check_squashfs}" ; fi
if [ "${1}" == 'live_from' ] ; then default="_${live_from}" ; fi
if [ "${1}" == 'pause' ] ; then default="_${pause}" ; fi
if [ "${1}" == 'time_out' ] ; then default="_${time_out}" ; fi
function env_get {
unset get
if [ "${1}" == 'check_squashfs' ] ; then get="${check_squashfs}" ; fi
if [ "${1}" == 'live_from' ] ; then get="${live_from}" ; fi
if [ "${1}" == 'pause' ] ; then get="${pause}" ; fi
if [ "${1}" == 'time_out' ] ; then get="${time_out}" ; fi
if [ ! "${get}" ] ; then return 1 ; fi
}
function env_init {