From b652c12cbcf2f85355354446ecf723e45a12f735 Mon Sep 17 00:00:00 2001 From: Jason Fesler Date: Tue, 17 Feb 2015 13:06:54 -0800 Subject: wip --- Makefile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6e90c86..9e3d315 100644 --- a/Makefile +++ b/Makefile @@ -20,17 +20,37 @@ upstart: install @echo Checking to see if your system uses upstart test -d /etc/init/ /usr/bin/install -c upstart/mtu1280d /etc/init/ + @echo "Reminder - start the daemon or reboot; then update your ip6tables." + @echo "See the README.md file." init.d: install /usr/bin/install -c init.d/mtu1280d /etc/init.d/ update-rc.d mtu1280d defaults update-rc.d mtu1280d enable -remove: + @echo "Reminder - start the daemon or reboot; then update your ip6tables." + @echo "See the README.md file." + + +################################################################ +# Removing? Check ip6tables first # +################################################################ + +pre-remove: + @echo Checking ip6tables to make sure you no longer use NFQUEUE + @ip6tables-save | grep NFQUEUE && echo "NFQUEUE rulee still active in ip6tables" || true + @ip6tables-save | grep "NFQUEUE" >/dev/null ; [ $$? -eq 1 ] + @echo safe to remove + +force-remove: @echo "Removing any previous installation (including startup scripts) of mtu1280d" rm -fr /usr/sbin/mtu1280d /etc/init/mtu1280d /etc/init.d/mtu1280d update-rc.d mtu1280d remove +remove: pre-remove force-remove + + + -- cgit v1.2.3