Drop remaining bits of /e/n/i mangling
Trying to restore a potentially outdated /e/n/i file most likely does
more harm then good. Someone upgrading from squeeze to wheezy most
likely has adjusted his network configuration by now.
Michael Biebl
11 years ago
26 | 26 | fi |
27 | 27 | ;; |
28 | 28 | remove) |
29 | # Restore the ifupdown configuration that were disabled at installation | |
30 | # TODO: drop this code in jessie | |
31 | backup_suffix=0 | |
32 | while test -e /etc/network/interfaces.bak-${backup_suffix}; do | |
33 | backup_suffix=$(($backup_suffix + 1)) | |
34 | done | |
35 | if [ -f /etc/network/interfaces ]; then | |
36 | sed -i.bak-${backup_suffix} -e "s/^#NetworkManager#//g" /etc/network/interfaces | |
37 | fi | |
29 | # Since we no longer run the ifblacklist_migrate.sh script | |
30 | # we also don't need to clean up anymore afterwards. | |
38 | 31 | ;; |
39 | 32 | upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
40 | 33 | ;; |