projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert emacsrc to UTF-8
[hvlinux.git]
/
stage2
/
bootscripts
/
ifup
diff --git
a/stage2/bootscripts/ifup
b/stage2/bootscripts/ifup
index
dd2683b
..
6af859a
100755
(executable)
--- a/
stage2/bootscripts/ifup
+++ b/
stage2/bootscripts/ifup
@@
-37,7
+37,7
@@
bring_if_up()
fi
# Check if a cable is plugged for wired interface
fi
# Check if a cable is plugged for wired interface
- if
[ ! -d /sys/class/net/${DEVICE}/wireless ]
; then
+ if
echo "${DEVICE}" | grep -q "eth"
; then
count=0
while cat /sys/class/net/${DEVICE}/carrier | grep -q "0"; do
echo "Waiting for carrier to go up"
count=0
while cat /sys/class/net/${DEVICE}/carrier | grep -q "0"; do
echo "Waiting for carrier to go up"