Changeset 8841


Ignore:
Timestamp:
2007-09-19T17:36:30+02:00 (10 years ago)
Author:
nbd
Message:

sync awk implementation of config_get_bool with the shell variant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/config/uci.awk

    r6666 r8841  
    3939function config_get_bool(package, option, default, var) { 
    4040        var = config_get(package, option); 
    41         if ((var == "enabled") || (var == "1") || (var == "on")) return 1 
    42         if ((var == "disabled") || (var == "0") || (var == "off")) return 1 
     41        if ((var == "enabled") || (var == "true") || (var == "1") || (var == "on")) return 1 
     42        if ((var == "disabled") || (var == "false") || (var == "0") || (var == "off")) return 1 
    4343        return (var && var != "0" ? 1 : 0) 
    4444} 
Note: See TracChangeset for help on using the changeset viewer.