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.prerm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 debian/torouterui.prerm (limited to 'debian/torouterui.prerm') diff --git a/debian/torouterui.prerm b/debian/torouterui.prerm new file mode 100644 index 0000000..f8e1600 --- /dev/null +++ b/debian/torouterui.prerm @@ -0,0 +1,12 @@ +if [ -x "/etc/init.d/torouterui" ]; then + invoke-rc.d torouterui stop || exit $? +fi + +if which pyclean >/dev/null 2>&1; then + pyclean -p torouterui +else + dpkg -L torouterui | grep \.py$ | while read file + do + rm -f "${file}"[co] >/dev/null + done +fi -- cgit v1.2.3