From 460641370114eb380c10d9b6bed34ed2c9b4735e Mon Sep 17 00:00:00 2001 From: ficus Date: Mon, 24 Sep 2012 17:06:24 +0200 Subject: proper debian packaging and init.d script --- debian/torouterui.postinst | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 debian/torouterui.postinst (limited to 'debian/torouterui.postinst') diff --git a/debian/torouterui.postinst b/debian/torouterui.postinst new file mode 100644 index 0000000..e61d07a --- /dev/null +++ b/debian/torouterui.postinst @@ -0,0 +1,9 @@ + +if which pycompile >/dev/null 2>&1; then + pycompile -p torouterui + echo "Not starting just now; do so with '/etc/init.d/torouterui start' as root" +fi + +if [ -x "/etc/init.d/torouterui" ]; then + update-rc.d torouterui defaults >/dev/null +fi -- cgit v1.2.3