Changeset 41405


Ignore:
Timestamp:
2014-06-30T01:05:05+02:00 (4 years ago)
Author:
luka
Message:

base-files: define yes/no as valid boolean options

ubox validate_data defines yes/no as valid boolean options, do the same in
config_get_bool too.

Signed-off-by: Luka Perkov <luka@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/functions.sh

    r40426 r41405  
    103103        config_get _tmp "$2" "$3" "$4" 
    104104        case "$_tmp" in 
    105                 1|on|true|enabled) _tmp=1;; 
    106                 0|off|false|disabled) _tmp=0;; 
     105                1|on|true|yes|enabled) _tmp=1;; 
     106                0|off|false|no|disabled) _tmp=0;; 
    107107                *) _tmp="$4";; 
    108108        esac 
Note: See TracChangeset for help on using the changeset viewer.