From f03c933e473760cb3776aee8283ecb3e4bddf097 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 13 Dec 2002 00:01:44 +0000 Subject: New applet, nameif by Nick Fedchik and myself. --- include/applets.h | 3 +++ include/usage.h | 13 +++++++++++++ 2 files changed, 16 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 9257fc940..bd2053039 100644 --- a/include/applets.h +++ b/include/applets.h @@ -368,6 +368,9 @@ #ifdef CONFIG_MV APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_NAMEIF + APPLET(nameif, nameif_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_NC APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index f484ee9ef..d3c1e5072 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1453,6 +1453,19 @@ #define mv_example_usage \ "$ mv /tmp/foo /bin/bar\n" +#define nameif_trivial_usage \ + "[OPTIONS] [{IFNAME MACADDR}]" +#define nameif_full_usage \ + "Nameif renaming network interface while it in the down state.\n\n" \ + "Options:\n" \ + "\t-c FILE\t\tUse another configuration file (default is /etc/mactab)\n" \ + "\t-s\t\tUse syslog (LOCAL0 facility).\n" \ + "\tIFNAME MACADDR\tnew_interface_name interface_mac_address\n" +#define nameif_example_usage \ + "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \ + " or\n" \ + "$ nameif -c /etc/my_mactab_file\n" \ + #define nc_trivial_usage \ "[OPTIONS] [IP] [port]" #define nc_full_usage \ -- cgit v1.2.3