summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-firewall.postinst.in
blob: 462993b3b7952002ace36d07eb0b1102fdb57d5f (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 vyatta_sip_options
do
  if [ -f /etc/modprobe.d/${modprobe} ]; then
      mv -f /etc/modprobe.d/${modprobe} /etc/modprobe.d/${modprobe}.conf
  fi
done