or for better readability (call me quiche-eater):
DEV=$($IPROUTE route
\
| sed -ne 's/^default.* dev
\([[:alnum:]-]\+\)\(.*metric \([0-9]\+\)\)\{0,1\}.*$/\1 \3/p' \
| sort -n -k2
\
| sed -e '1{s/^\([[:alnum:]-]\+\).*$/\1/;q}')
--
vpnc: do_ifconfig() in /etc/vpnc/vpnc-script misparses output of "ip route"
https://bugs.launchpad.net/bugs/382168
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs