diff options
author | Jason Fesler <jfesler@guest.gigo.com> | 2015-02-17 12:20:00 -0800 |
---|---|---|
committer | Jason Fesler <jfesler@guest.gigo.com> | 2015-02-17 12:20:00 -0800 |
commit | cc77a17a4af235fbe7d85b06ade0bcd1e87effac (patch) | |
tree | d69a60c04c31b56d4352a4aaf9d971ac23921f27 | |
parent | d6d784cc333cdc1ff496c1fc562ffd2335a39e92 (diff) | |
download | mtu1280d-cc77a17a4af235fbe7d85b06ade0bcd1e87effac.tar.gz mtu1280d-cc77a17a4af235fbe7d85b06ade0bcd1e87effac.zip |
install and init scripts
-rw-r--r-- | Makefile | 19 | ||||
-rw-r--r-- | init.d/mtu1280d (renamed from init.d/mtu1280) | 0 | ||||
-rwxr-xr-x | upstart/mtu1280d (renamed from upstart/mtu1280) | 0 |
3 files changed, 15 insertions, 4 deletions
@@ -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 diff --git a/init.d/mtu1280 b/init.d/mtu1280d index 72103c9..72103c9 100644 --- a/init.d/mtu1280 +++ b/init.d/mtu1280d diff --git a/upstart/mtu1280 b/upstart/mtu1280d index ee996aa..ee996aa 100755 --- a/upstart/mtu1280 +++ b/upstart/mtu1280d |