#! /bin/sh
# Disable 'auto dhcp' interfaces if network-manager is in use.
set -e

. /usr/share/debconf/confmodule

db_get netcfg/network-manager
if [ "$RET" = true ] && \
   [ -f /target/usr/lib/NetworkManager/ifblacklist_migrate.sh ]; then
	NETCFG=1 chroot /target \
		sh /usr/lib/NetworkManager/ifblacklist_migrate.sh
fi

exit 0
