aboutsummaryrefslogtreecommitdiffstats
path: root/debian/torouterui.postinst
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-24 17:06:24 +0200
committerficus <ficus@robocracy.org>2012-09-24 17:37:37 +0200
commit460641370114eb380c10d9b6bed34ed2c9b4735e (patch)
tree2a4e9bb7f85978050b93c6e5981c010ce72a6725 /debian/torouterui.postinst
parentb1902b23ef08d0440161f67b15e0e9a4f4b933cc (diff)
downloadtui-460641370114eb380c10d9b6bed34ed2c9b4735e.tar.gz
tui-460641370114eb380c10d9b6bed34ed2c9b4735e.zip
proper debian packaging and init.d script
Diffstat (limited to 'debian/torouterui.postinst')
-rw-r--r--debian/torouterui.postinst9
1 files changed, 9 insertions, 0 deletions
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