summaryrefslogtreecommitdiff
path: root/packages/udev/files/network.sh
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-04-20 16:01:09 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-20 16:01:09 +0000
commit59477a7a2bd675aa25967cf6851a66f5852932d0 (patch)
treeba9717a14f7edece45db26fbc6ce5746e80d14d9 /packages/udev/files/network.sh
parentf51ab442976e16713aa131e019c5a93e3f968715 (diff)
udev: network.sh: Do not ifup an already configured network device again.
Diffstat (limited to 'packages/udev/files/network.sh')
-rw-r--r--packages/udev/files/network.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/udev/files/network.sh b/packages/udev/files/network.sh
index 2cfbfa91b3..5e2bd5799a 100644
--- a/packages/udev/files/network.sh
+++ b/packages/udev/files/network.sh
@@ -15,7 +15,7 @@ echo "$INTERFACE" | grep -q wifi && exit 0
if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then
case $ACTION in
add)
- ifup $INTERFACE
+ ifconfig | grep -q "^$INTERFACE" || ifup $INTERFACE
;;
remove)
ifdown $INTERFACE