Actually the line I'm using ends with
.. | sed -e '1{s/^\([[:alnum:]-]\+\).*$/\1/;q}')

(must have got truncated when I wrote that comment and I didn't notice).
I think this will ensure that you always get only one device name, which
yours doesn't.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to