summaryrefslogtreecommitdiffstats
path: root/radvd/radvd.install
blob: c049cbd82dd59623229f83f102ce9fa334c4d23a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# arg 1:  the new package version
pre_install() {
  /bin/true
}

# arg 1:  the new package version
post_install() {

  cat << EOF

NOTE
----

radvd requires IPv6 forwarding be enabled. To enable IPv6 forwarding at
boot time, add the following to /etc/sysctl.conf:

  # Enable IPv6 packet forwarding 
  net.ipv6.conf.all.forwarding = 1

or manually enable forwarding using:

  echo 1 > /proc/sys/net/ipv6/conf/all/forwarding 

EOF

 /bin/true

}

# arg 1:  the new package version
# arg 2:  the old package version
pre_upgrade() {
  /bin/true
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  /bin/true
}

# arg 1:  the old package version
pre_remove() {
  /bin/true
}

# arg 1:  the old package version
post_remove() {

  # clean up just in case
  rm -f /var/run/radvd.pid

}

op=$1
shift
$op $*