diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2023-01-25 15:36:26 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2023-01-25 14:47:22 +0000 |
commit | 6424b345be8c083e253aefa14a9f06328f949813 (patch) | |
tree | 9c27a8777ae831819ae21df9b2002e0bc1d73e1d /setup-interfaces.in | |
parent | e3a6f3f0115ab533558dd69d8cfa2b194f8403e8 (diff) | |
download | alpine-conf-6424b345be8c083e253aefa14a9f06328f949813.zip |
setup-interfaces: add tests for auto
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r-- | setup-interfaces.in | 2 |
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 |