aboutsummaryrefslogtreecommitdiffstats
path: root/debian/torouterui.prerm
blob: f8e1600606c9d87be4d65163865248e5aeada0a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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