[Dnssec-trigger] 0.11 uses wrong nmcli parameters on NM > 0.9.[34]
Paul Wouters
paul at cypherpunks.ca
Fri Jun 29 17:12:24 UTC 2012
It seems the nmcl syntax has changed.
For Fedora 16 and 17, I needed:
ips="`$nmcli -f IP4,IP6 dev list | fgrep 'DNS' | awk '{print $2;}'`"
instead of:
ips="`$nmcli -f IP4-DNS,IP6-DNS dev list | awk '{print $2;}'`"
It seems this change was made in NetworkManager 0.9.3 or 0.9.4.
(0.9.3 never shipped in Fedora)
I've fired of builds with this change for F16 anf F17, but
perhaps dnssec-trigger should check using nmcli -v ?
something like:
$nmcli -f IP4-DNS dev list > /dev/null 2>/dev/null
RETVAL=$?
if [ $RETVAL = 0 ] ; then
ips="`$nmcli -f IP4-DNS,IP6-DNS dev list | awk '{print $2;}'`"
else
# NM < 0.9.4
ips="`$nmcli -f IP4,IP6 dev list | fgrep 'DNS' | awk '{print $2;}'`"
fi
Paul
More information about the dnssec-trigger
mailing list