[Server-devel] [PATCH] skip_noschoolnet() bugfix - ethernet detection was missing
martin.langhoff at gmail.com
martin.langhoff at gmail.com
Mon Jun 16 13:46:38 EDT 2008
From: Martin Langhoff <martin at laptop.org>
I had dropped the ethernet detection. Oops.
---
ds_backup.sh | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ds_backup.sh b/ds_backup.sh
index e654adb..884e48d 100755
--- a/ds_backup.sh
+++ b/ds_backup.sh
@@ -22,6 +22,14 @@
## (cannibalised from olpc-netstatus)
##
function skip_noschoolnet {
+
+ #ethernet
+ ethernet=''
+ for i in `ifconfig|grep HWaddr|awk '{print $1}'`
+ do
+ iwconfig $i 2>&1|grep "no wireless" > /dev/null && ethernet="$i $ethernet"
+ done
+
eth=''
msh=''
ipeth=''
--
1.5.4.34.g053d9
More information about the Server-devel
mailing list