3 .
/etc
/network.overrides
4 [ "$FAILSAFE" != "true" -a -e /etc
/config
/network
] && .
/etc
/config
/network
6 # interface to use for DHCP
9 ifname
=$
(nvram get
${iface}_ifname
)
10 ipaddr
=$
(nvram get
${iface}_ipaddr
)
11 netmask
=$
(nvram get
${iface}_netmask
)
14 # check for existing DHCP server
15 udhcpc
-n -q -R -s /dev
/zero
-i $ifname >&- ||
{
17 ipaddr
=$
(ip2int
$ipaddr)
18 netmask
=$
(ip2int
${netmask:-255.255.255.0})
19 network
=$
((ipaddr
&netmask
))
21 start
=$
(nvram get dhcp_start
)
22 start
=$
((network
+${start:-100}))
23 end
=$
(nvram get dhcp_num
)
24 end
=$
((start
+${end:-150}))
26 args
="-l /tmp/dhcp.leases -K -F $(int2ip $start),$(int2ip $end),$(int2ip $netmask),12h"
This page took 0.062041 seconds and 5 git commands to generate.