summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-firewall.postinst.in
blob: 3bfd95e05aad9c17d5661677df65724309cc584e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

prefix=@prefix@
exec_prefix=@exec_prefix@
sysconfdir=@sysconfdir@
bindir=@bindir@
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