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 }