summaryrefslogtreecommitdiffstats
path: root/radvd/radvd.install
diff options
context:
space:
mode:
Diffstat (limited to 'radvd/radvd.install')
-rw-r--r--radvd/radvd.install57
1 files changed, 57 insertions, 0 deletions
diff --git a/radvd/radvd.install b/radvd/radvd.install
new file mode 100644
index 0000000..c049cbd
--- /dev/null
+++ b/radvd/radvd.install
@@ -0,0 +1,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 $*