diff options
| author | Michael Biebl <biebl@debian.org> | 2013-01-29 04:31:33 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2013-01-29 04:31:33 +0100 |
| commit | e92fe1e6afb8dbcaa6e31721c9d5634c6e63e1ef (patch) | |
| tree | 63bd90a4135a074e5797a3bb2d28831b296f19f4 /debian/network-manager.postinst | |
| parent | 06b9b1d059869cd5531e3b666b025f5308d42cb7 (diff) | |
| parent | 989cceb558d2c8d52b061d1ee214dbae5b056d45 (diff) | |
Merge branch 'master' into experimental
Conflicts: debian/changelog debian/patches/series
Diffstat (limited to 'debian/network-manager.postinst')
| -rw-r--r-- | debian/network-manager.postinst | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/debian/network-manager.postinst b/debian/network-manager.postinst index b2dd4353..17c4950d 100644 --- a/debian/network-manager.postinst +++ b/debian/network-manager.postinst @@ -42,10 +42,17 @@ case "$1" in kill `pidof /usr/sbin/nm-system-settings` 2>/dev/null || true fi - if [ -z "$2" ] || dpkg --compare-versions "$2" lt-nl "0.8.1-4"; then - if [ -f /etc/network/interfaces ]; then - echo "Disabling interfaces configured with plain DHCP in /etc/network/interfaces so that NetworkManager can take them over" - /usr/lib/NetworkManager/ifblacklist_migrate.sh + NIF=/etc/network/interfaces + if [ -z "$2" ] && [ -f $NIF ]; then + ifaces=`grep -v '^#' $NIF | awk '/iface/ {print $2}' | sort -u | sed -e 's/lo//' -e '/^$/d' -e 's/^/- /'` + if [ -n "$ifaces" ]; then + echo "" 1>&2 + echo "The following network interfaces were found in $NIF" 1>&2 + echo "which means they are currently configured by ifupdown:" 1>&2 + echo "$ifaces" 1>&2 + echo "If you want to manage those interfaces with NetworkManager instead" 1>&2 + echo "remove their configuration from $NIF." 1>&2 + echo "" 1>&2 fi fi ;; |