summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-17 17:40:42 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-17 17:40:42 -0700
commit7ec2c9bb68ed55dc6182de150b904c4d66623771 (patch)
treef0cfc854c9f0e4e0f160bf460868315093c1cb26 /debian
parent5009cb83a189a231e5b588d416819859f5d6acf2 (diff)
downloadvyatta-cfg-7ec2c9bb68ed55dc6182de150b904c4d66623771.tar.gz
vyatta-cfg-7ec2c9bb68ed55dc6182de150b904c4d66623771.zip
import the vyatta-ofr init script from old eureka.
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-cfg.postinst.in3
-rw-r--r--debian/vyatta-cfg.postrm.in6
2 files changed, 9 insertions, 0 deletions
diff --git a/debian/vyatta-cfg.postinst.in b/debian/vyatta-cfg.postinst.in
index 6a5a3ec..e84995e 100644
--- a/debian/vyatta-cfg.postinst.in
+++ b/debian/vyatta-cfg.postinst.in
@@ -10,3 +10,6 @@ for d in {$prefix,$sysconfdir}/config; do
chmod -R g+w $d
done
+update-rc.d vyatta-ofr defaults >/dev/null
+# do we want to start vyatta-ofr here in postinst?
+
diff --git a/debian/vyatta-cfg.postrm.in b/debian/vyatta-cfg.postrm.in
new file mode 100644
index 0000000..262b9fe
--- /dev/null
+++ b/debian/vyatta-cfg.postrm.in
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+if [ "$1" = "purge" ]; then
+ update-rc.d vyatta-ofr remove >/dev/null || exit $?
+fi
+