summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r--setup-interfaces.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index 33e9219..a5cc9ed 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -550,7 +550,7 @@ prompt_for_interfaces() {
auto_setup() {
local iface
for iface in $(available_ifaces); do
- if [ "$(cat "$ROOT"/sys/class/net/$iface/operstate)" = "up" ]; then
+ if [ "$(cat "$ROOT"/sys/class/net/$iface/operstate 2>/dev/null)" = "up" ]; then
break
fi
done