summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network b/src/network
index 4858144..e8c2ae1 100644
--- a/src/network
+++ b/src/network
@@ -364,7 +364,8 @@ is_interface() {
}
interface_is_up() {
- local flags="$(< "/sys/class/net/$1/flags")"
+ local flags
+ read flags < "/sys/class/net/$1/flags"
# IFF_UP is defined as 0x1 in linux/if.h
(( flags & 0x1 ))
}