From 0be52a1eb189cd122b12718e646b27f7ff0273a1 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Mon, 13 Sep 2010 15:48:15 -0700 Subject: rename pre-mendocino ipv6 modprobe files to add .conf suffix --- debian/vyatta-cfg-system.postinst.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'debian/vyatta-cfg-system.postinst.in') diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index e12ca45b..9f5b7b88 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -207,6 +207,15 @@ if [ -f /etc/init.d/vyatta-ofr ]; then rm -f /etc/init.d/vyatta-ofr fi +# comply with Squeeze version of modprobe +# remove old versions of files during upgrade +for modprobe in vyatta_blacklist_ipv6 vyatta_disable_ipv6 +do + if [ -f /etc/modprobe.d/${modprobe} ]; then + mv -f /etc/modprobe.d/${modprobe} /etc/modprobe.d/${modprobe}.conf + fi +done + # Local Variables: # mode: shell-script # sh-indentation: 4 -- cgit v1.2.3