first swap menus
This commit is contained in:
parent
738c2095d2
commit
86d12fe01f
5 changed files with 67 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue