From cc77a17a4af235fbe7d85b06ade0bcd1e87effac Mon Sep 17 00:00:00 2001 From: Jason Fesler Date: Tue, 17 Feb 2015 12:20:00 -0800 Subject: install and init scripts --- Makefile | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 132420e..fabac1c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,18 @@ -mtu1280: mtu1280d.c - gcc -o mtu1280 mtu1280d.c -lnetfilter_queue +mtu1280d: mtu1280d.c + gcc -o mtu1280d mtu1280d.c -lnetfilter_queue install: mtu1280d - /usr/bin/install -c mtu1280d /usr/sbin/mtu1280d - \ No newline at end of file + /usr/bin/install -c mtu1280d /usr/sbin/ + +upstart: install + /usr/bin/install -c upstart/mtu1280d /etc/init/ + +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 "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 -- cgit v1.2.3