summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-01 11:34:25 +0200
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-01 11:34:25 +0200
commit79153f655b1f8af1df6b36875c2d0b61386b33a9 (patch)
treef5e2b6c8dece9dbc8c7f8edc18e38eb1e67ccfc8
parentd50a913b21b1ceec3bf22915caa87a8a9b44e3d1 (diff)
downloadMAC-Telnet-79153f655b1f8af1df6b36875c2d0b61386b33a9.tar.gz
MAC-Telnet-79153f655b1f8af1df6b36875c2d0b61386b33a9.zip
Added install option to Makefile, and fixed a "typo"
-rw-r--r--Makefile4
-rw-r--r--main.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d48263f..bbfa0de 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,10 @@ clean: dist-clean
dist-clean:
rm -f mactelnet mndp
+install: all
+ cp mndp /usr/bin/
+ cp mactelnet /usr/sbin/
+
mactelnet: config.h main.c udp.h udp.c mactelnet.c mactelnet.h console.c console.h devices.c devices.h
gcc -g -o mactelnet -lcrypto main.c udp.c mactelnet.c console.c devices.c
diff --git a/main.c b/main.c
index f15d811..7c62abb 100644
--- a/main.c
+++ b/main.c
@@ -204,7 +204,7 @@ int main (int argc, char **argv) {
if (argc > 1) {
fprintf(stderr, "\nRequired parameters:\n");
- fprintf(stderr, " ifname Network interface that the RouterOS resides on. (ex: eth0)\n");
+ fprintf(stderr, " ifname Network interface that the RouterOS resides on. (example: eth0)\n");
fprintf(stderr, " MAC MAC-Address of the RouterOS device. Use mndp to discover them.\n");
fprintf(stderr, " username Your username.\n");
fprintf(stderr, " password Your password.\n");