mirror of https://github.com/hak5/openwrt.git
parent
8f16983e89
commit
810b0bcb22
|
@ -149,10 +149,9 @@ setup_interface() {
|
||||||
config_get dns "$config" dns
|
config_get dns "$config" dns
|
||||||
config_get bcast "$config" broadcast
|
config_get bcast "$config" broadcast
|
||||||
|
|
||||||
[ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
|
[ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}"
|
||||||
[ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr"
|
[ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr"
|
||||||
[ -z "$gateway" ] || $DEBUG route add default gw "$gateway"
|
[ -z "$gateway" ] || $DEBUG route add default gw "$gateway"
|
||||||
[ -z "$bcast" ] || $DEBUG ifconfig "$iface" broadcast "$bcast"
|
|
||||||
[ -z "$dns" ] || {
|
[ -z "$dns" ] || {
|
||||||
for ns in $dns; do
|
for ns in $dns; do
|
||||||
grep "$ns" /tmp/resolv.conf.auto 2>/dev/null >/dev/null || {
|
grep "$ns" /tmp/resolv.conf.auto 2>/dev/null >/dev/null || {
|
||||||
|
|
Loading…
Reference in New Issue