projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add initial video4linux support (for usb webcams) to head
[openwrt.git]
/
openwrt
/
package
/
base-files
/
default
/
sbin
/
ifup
diff --git
a/openwrt/package/base-files/default/sbin/ifup
b/openwrt/package/base-files/default/sbin/ifup
index
3d81364
..
6aa9987
100755
(executable)
--- a/
openwrt/package/base-files/default/sbin/ifup
+++ b/
openwrt/package/base-files/default/sbin/ifup
@@
-1,6
+1,9
@@
#!/bin/ash
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
#!/bin/ash
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
+. /etc/network.overrides
+[ -e /etc/config/network ] && . /etc/config/network
+
type=$1
debug "### ifup $type ###"
type=$1
debug "### ifup $type ###"
@@
-12,6
+15,9
@@
if_valid $if || exit
mac=$(nvram get ${type}_hwaddr)
$DEBUG ifconfig $if down 2>&-
mac=$(nvram get ${type}_hwaddr)
$DEBUG ifconfig $if down 2>&-
+pidfile=/var/run/${if}.pid
+[ -f $pidfile ] && $DEBUG kill $(cat $pidfile)
+
if [ "${if%%[0-9]}" = "br" ]; then
stp=$(nvram get ${type}_stp)
$DEBUG brctl delbr $if 2>&-
if [ "${if%%[0-9]}" = "br" ]; then
stp=$(nvram get ${type}_stp)
$DEBUG brctl delbr $if 2>&-
@@
-47,7
+53,6
@@
case "$if_proto" in
;;
dhcp)
ip=$(nvram get ${type}_ipaddr)
;;
dhcp)
ip=$(nvram get ${type}_ipaddr)
- [ -f $pidfile ] && $DEBUG kill $(cat $pidfile)
${DEBUG:-eval} "udhcpc -R -i $if ${ip:+-r $ip} -b -p $pidfile &"
;;
none|"")
${DEBUG:-eval} "udhcpc -R -i $if ${ip:+-r $ip} -b -p $pidfile &"
;;
none|"")
This page took
0.025255 seconds
and
4
git commands to generate.