Codebase list network-manager / f2e3bcc
Properly quote physical interfaces in blacklist script * debian/ifblacklist_migrate.sh - Only comment out iface lines if we have an exact match for the network interface. (Closes: #612247) Michael Biebl 13 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
66 - Newer versions of dnsmasq validate the option parameters more strictly.
77 Instead of passing a bogus file name simply use --conf-file without
88 additional parameters. (Closes: #615082)
9 * debian/ifblacklist_migrate.sh
10 - Only comment out iface lines if we have an exact match for the network
11 interface. (Closes: #612247)
912
1013 -- Michael Biebl <biebl@debian.org> Sat, 22 Jan 2011 16:53:48 +0100
1114
4040 if test x$nulled_line != x; then
4141 line_count=$(expr $line_count + 1)
4242 fi
43 done
43 done
4444
4545 if test $line_count -eq 0 -a $word_count -gt 0; then
4646 ifaces_to_disable="$ifaces_to_disable $i"
5858 cp $NIF_FILE "$NIF_FILE.bak-${backup_suffix}"
5959 for i in $ifaces_to_disable; do
6060 echo -n "Disabling interface: $i ... "
61 sed -i -e "s/^\([ \t]*iface.*$i.*\)$/#NetworkManager#\1/" $NIF_FILE
61 sed -i -e "s/^\([ \t]*iface.*[ \t]$i[ \t].*\)$/#NetworkManager#\1/" $NIF_FILE
6262 echo done.
6363 done
6464 fi