diff options
author | Jason Fesler <jfesler@gigo.com> | 2015-02-17 13:06:54 -0800 |
---|---|---|
committer | Jason Fesler <jfesler@gigo.com> | 2015-02-17 13:06:54 -0800 |
commit | b652c12cbcf2f85355354446ecf723e45a12f735 (patch) | |
tree | 5e4ca88c3bea53edb37958e484388a234b6a6f2d | |
parent | 09e28bca2336be4f9dda700838d9952353174317 (diff) | |
download | mtu1280d-b652c12cbcf2f85355354446ecf723e45a12f735.tar.gz mtu1280d-b652c12cbcf2f85355354446ecf723e45a12f735.zip |
wip
-rw-r--r-- | Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -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 + + + |