mirror of https://github.com/hak5/openwrt-owl.git
parent
0122b4a576
commit
0201b83e86
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
[ -e /etc/config/network ] && . /etc/config/network
|
[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start|restart)
|
start|restart)
|
||||||
ifup lan
|
ifup lan
|
||||||
|
|
|
@ -5,7 +5,7 @@ ${FAILSAFE:+exit}
|
||||||
|
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
. /etc/network.overrides
|
. /etc/network.overrides
|
||||||
[ -e /etc/config/network ] && . /etc/config/network
|
[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
|
||||||
|
|
||||||
WAN=$(nvram get wan_ifname)
|
WAN=$(nvram get wan_ifname)
|
||||||
LAN=$(nvram get lan_ifname)
|
LAN=$(nvram get lan_ifname)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
. /etc/network.overrides
|
. /etc/network.overrides
|
||||||
[ -e /etc/config/network] && . /etc/config/network
|
[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
|
||||||
|
|
||||||
# interface to use for DHCP
|
# interface to use for DHCP
|
||||||
iface=lan
|
iface=lan
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
. /etc/network.overrides
|
. /etc/network.overrides
|
||||||
[ -e /etc/config/network ] && . /etc/config/network
|
[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
|
||||||
type=$1
|
type=$1
|
||||||
debug "### ifdown $type ###"
|
debug "### ifdown $type ###"
|
||||||
if=$(nvram get ${type}_ifname)
|
if=$(nvram get ${type}_ifname)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
[ $# = 0 ] && { echo " $0 <group>"; exit; }
|
||||||
. /etc/functions.sh
|
. /etc/functions.sh
|
||||||
. /etc/network.overrides
|
. /etc/network.overrides
|
||||||
[ -e /etc/config/network ] && . /etc/config/network
|
[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
|
||||||
|
|
||||||
type=$1
|
type=$1
|
||||||
debug "### ifup $type ###"
|
debug "### ifup $type ###"
|
||||||
|
|
Loading…
Reference in New Issue