From 89d84ec475af97dc1907a10ae4a783d42c0287c9 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 14 Oct 2020 02:38:05 -0600 Subject: [PATCH] openrc: use ifquery -L for find_ifaces() --- dist/openrc/networking.initd | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dist/openrc/networking.initd b/dist/openrc/networking.initd index c12dee7..346f269 100644 --- a/dist/openrc/networking.initd +++ b/dist/openrc/networking.initd @@ -1,8 +1,5 @@ #!/sbin/openrc-run -# note that the spoofprotect, syncoockies and ip_forward options are set in -# /etc/sysctl.conf - : ${cfgfile:="/etc/network/interfaces"} ifstate=/run/ifstate @@ -24,7 +21,7 @@ find_ifaces() { if [ -n "$single_iface" ]; then echo $single_iface else - awk '$1 == "auto" {for (i = 2; i <= NF; i = i + 1) printf("%s ", $i)}' "$cfgfile" + ifquery -L -i "$cfgfile" fi }