updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / carletonvpn-linux / CarletonVPN-linux.install
blobf37ad6c2b31c5b4a9b7adc50d1d62d3b9852b387
1 post_install() {
2   post_upgrade
5 post_upgrade() {
6   echo ""
7   echo -e "\e[1;31mAttention!\e[0;39m"
8   echo "----------"
9   echo "This package provides the cisco_ipsec kernel module which it requires to run."
10   echo "Make sure load that module before trying to use the VPN client: you may run"
11   echo "\"modprobe cisco_ipsec\" (which requires root privileges) or add it to the"
12   echo "MODULES array in /etc/rc.conf if you want this module to be loaded in every"
13   echo "system start for example."
14   echo ""
15   echo "The vpnclient binary also requires root privileges, thus if you want to use it"
16   echo "as another user you may do so through "sudo" or a similar application. The VPN"
17   echo "client cannot have setuid nor setgid permissions."
18   echo "----------"
19   echo ""
20   echo ">>> Updating module dependencies. Please wait..."
21   KERNEL_VERSION=3.0-ARCH
22   depmod -A -v $KERNEL_VERSION > /dev/null 2>&1
23   echo ""
26 post_remove() {
27   echo ">>> Updating module dependencies. Please wait..."
28   KERNEL_VERSION=3.0-ARCH
29   depmod -A -v $KERNEL_VERSION > /dev/null 2>&1
30   echo ""
33 op=$1
34 shift
35 $op $*