summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2010-09-13 14:04:13 -0700
committerMohit Mehta <mohit@vyatta.com>2010-09-13 14:04:13 -0700
commit7afe9e82b60be763398531295d03f7215f21d94b (patch)
tree5979392a3b37c8b2459ddefda83b80f538397ad9 /debian
parent8edddaa5dbadbb35ed2d6f2fd3da7c5997d093e0 (diff)
downloadvyatta-cfg-firewall-7afe9e82b60be763398531295d03f7215f21d94b.tar.gz
vyatta-cfg-firewall-7afe9e82b60be763398531295d03f7215f21d94b.zip
Fix Bug 6149 Warning on boot because of modprobe config file names
* add .conf suffix to files in /etc/modprobe.d * remove old files without the suffix [from a previous release] during upgrade
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-cfg-firewall.postinst.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-firewall.postinst.in b/debian/vyatta-cfg-firewall.postinst.in
index 9b86330..3bfd95e 100644
--- a/debian/vyatta-cfg-firewall.postinst.in
+++ b/debian/vyatta-cfg-firewall.postinst.in
@@ -8,3 +8,13 @@ sbindir=@sbindir@
# add symlinks for sudo
ln -sf /opt/vyatta/sbin/vyatta-ipset.pl ${bindir}/sudo-users/vyatta-ipset.pl
+
+
+# comply with Squeeze version of modprobe
+# remove old versions of files during upgrade
+for modprobe in vyatta_nf_conntrack vyatta_xt_recent
+do
+ if [ -f /etc/modprobe.d/${modprobe} ]; then
+ rm -f /etc/modprobe.d/${modprobe}
+ fi
+done