summaryrefslogtreecommitdiffstats
path: root/radvd/radvd.install
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-07-13 09:05:18 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-07-13 09:05:18 +0200
commit953368befe24437af41c0309263040ec6ce5d25d (patch)
tree5f9275898d8fa8d88ae43d0e696b5c7c20d56244 /radvd/radvd.install
parent8d23351755ef023dc68e90de539ae086dda7dcec (diff)
downloadaur-packages-953368befe24437af41c0309263040ec6ce5d25d.tar.gz
aur-packages-953368befe24437af41c0309263040ec6ce5d25d.tar.xz
update
Signed-off-by: Florian Pritz <bluewind@xssn.at>
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 $*