Changeset 25899


Ignore:
Timestamp:
2011-03-06T19:57:06+01:00 (7 years ago)
Author:
cshore
Message:

[packages] miniupnpd: Added uci option config_file, which allows the user to specify that miniupnpd should use the specified file as the configuration file instead of /etc/miniupnpd.conf or none if no /etc/miniupnpd.conf present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/miniupnpd/files/miniupnpd.init

    r25898 r25899  
    88        config_load "upnpd" 
    99        local extiface intiface upload download logging secure enabled natpmp 
    10         local extip port usesystuptime 
     10        local extip port usesysuptime conffile 
    1111 
    1212        config_get extiface config external_iface 
     
    2121        config_get_bool enabled config enabled 0  
    2222        config_get_bool usesysuptime config use_system_uptime 1 
     23        config_get conffile config config_file 
    2324 
    2425        include /lib/network 
     
    5657                        append args "-N" 
    5758 
     59                [ -n "$conffile" ] && \ 
     60                        append args "-f $conffile" 
     61 
    5862                # start firewall 
    5963                local zone 
Note: See TracChangeset for help on using the changeset viewer.