Changeset 3525


Ignore:
Timestamp:
2006-03-28T18:14:39+02:00 (12 years ago)
Author:
mbm
Message:

fix dhcp_num

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/dnsmasq/files/S50dnsmasq

    r3435 r3525  
    1414 
    1515  # calculate settings 
    16   ipaddr=$(nvram get ${iface}_ipaddr) 
     16   ipaddr=$(nvram get ${iface}_ipaddr) 
    1717  netmask=$(nvram get ${iface}_netmask) 
    18   start=$(nvram get dhcp_start) 
    19   start=$((network+${start:-100})) 
    20   num=$(nvram get dhcp_num) 
    21   num=$((start+${num:-150})) 
    22   eval $(ipcalc $ipaddr $netmask $start $num) 
     18    start=$(nvram get dhcp_start) 
     19      num=$(nvram get dhcp_num) 
     20 
     21  eval $(ipcalc $ipaddr $netmask ${start:-100} ${num:-150}) 
    2322   
    2423  # and pass the args via the commandline 
Note: See TracChangeset for help on using the changeset viewer.