summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
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
+