diff options
| author | Michael Biebl <biebl@debian.org> | 2010-11-29 15:05:48 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2010-11-29 15:05:56 +0100 |
| commit | da2c055103fed8be9a72bd820a9424873bf651c4 (patch) | |
| tree | b541d17bf140c412f9365a7e8b65b3670c55bc44 /debian/network-manager.postinst | |
| parent | 00aad0b34da1a25f12315deec515a4bf32ee8090 (diff) | |
Don't try the interfaces migration if /etc/network/interfaces does not exist.
This avoids a failure on remove. (Closes: #605360)
Diffstat (limited to 'debian/network-manager.postinst')
| -rw-r--r-- | debian/network-manager.postinst | 6 |
1 files changed, 4 insertions, 2 deletions
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 ;; |