From da2c055103fed8be9a72bd820a9424873bf651c4 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Mon, 29 Nov 2010 15:05:48 +0100 Subject: Don't try the interfaces migration if /etc/network/interfaces does not exist. This avoids a failure on remove. (Closes: #605360) --- debian/network-manager.postinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'debian/network-manager.postinst') diff --git a/debian/network-manager.postinst b/debian/network-manager.postinst index 6ef57ff7..87fee6ea 100644 --- a/debian/network-manager.postinst +++ b/debian/network-manager.postinst @@ -68,8 +68,10 @@ case "$1" in fi if [ -z "$2" ] || dpkg --compare-versions "$2" lt-nl "0.8.1-4"; 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 + 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 + fi fi ;; -- cgit 1.3.0-6-gf8a5