From 7ec2c9bb68ed55dc6182de150b904c4d66623771 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 17 Oct 2007 17:40:42 -0700 Subject: import the vyatta-ofr init script from old eureka. --- debian/vyatta-cfg.postinst.in | 3 +++ debian/vyatta-cfg.postrm.in | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 debian/vyatta-cfg.postrm.in (limited to 'debian') 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 + -- cgit v1.2.3