summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2023-01-25 15:36:26 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2023-01-25 14:47:22 +0000
commit6424b345be8c083e253aefa14a9f06328f949813 (patch)
tree9c27a8777ae831819ae21df9b2002e0bc1d73e1d /setup-interfaces.in
parente3a6f3f0115ab533558dd69d8cfa2b194f8403e8 (diff)
downloadalpine-conf-6424b345be8c083e253aefa14a9f06328f949813.zip
setup-interfaces: add tests for auto
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