Ignore:
Timestamp:
2010-08-11T02:23:13+02:00 (6 years ago)
Author:
jow
Message:

[backfire] merge r22589

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/uhttpd/files/uhttpd.init

    r21592 r22590  
    1616        config_get val "$cfg" "$var" 
    1717        [ -n "$val" -o -n "$def" ] && append UHTTPD_ARGS "$opt ${val:-$def}" 
     18} 
     19 
     20append_bool() { 
     21        local cfg="$1" 
     22        local var="$2" 
     23        local opt="$3" 
     24        local def="$4" 
     25        local val 
     26 
     27        config_get_bool val "$cfg" "$var" "$def" 
     28        [ "$val" = 1 ] && append UHTTPD_ARGS "$opt" 
    1829} 
    1930 
     
    6071        append_arg "$cfg" script_timeout "-t" 
    6172        append_arg "$cfg" network_timeout "-T" 
     73        append_arg "$cfg" error_page "-E" 
     74        append_arg "$cfg" index_page "-I" 
     75 
     76        append_bool "$cfg" no_symlinks "-S" 0 
     77        append_bool "$cfg" no_dirlists "-D" 0 
     78        append_bool "$cfg" rfc1918_filter "-R" 0 
    6279 
    6380        config_get http "$cfg" listen_http 
Note: See TracChangeset for help on using the changeset viewer.