aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/ifconfig.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-01 22:25:53 +0000
committerRoy Marples <roy@marples.name>2007-11-01 22:25:53 +0000
commit80124a050c626584f19fbac917276946224bcde7 (patch)
treec94990be30f3bf00785a8577fb7ef7cf1bd46f21 /net.Linux/ifconfig.sh
parenta1f80bc7a74b5b3b899eadeb63ccfbdec6d860d0 (diff)
Work cleanly with bridges on kernels without TCP, #197791.
Diffstat (limited to 'net.Linux/ifconfig.sh')
-rw-r--r--net.Linux/ifconfig.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/net.Linux/ifconfig.sh b/net.Linux/ifconfig.sh
index bc04cdb7..4051ef57 100644
--- a/net.Linux/ifconfig.sh
+++ b/net.Linux/ifconfig.sh
@@ -42,6 +42,10 @@ _is_wireless() {
grep -Eq "^[[:space:]]*${IFACE}:" /proc/net/wireless
}
+_set_flag() {
+ ifconfig "${IFACE}" "$1"
+}
+
_get_mac_address() {
local mac=$(LC_ALL=C ifconfig "${IFACE}" | \
sed -n -e 's/.* HWaddr \(..:..:..:..:..:..\).*/\1/p')