diff options
author | Glenn L McGrath | 2002-12-13 00:01:44 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-12-13 00:01:44 +0000 |
commit | f03c933e473760cb3776aee8283ecb3e4bddf097 (patch) | |
tree | ba401fac3566fc280a93c7933e4c33767acd99ee /include | |
parent | 9130c8584783a4449b01cce2a780add080f23dd9 (diff) | |
download | busybox-f03c933e473760cb3776aee8283ecb3e4bddf097.zip busybox-f03c933e473760cb3776aee8283ecb3e4bddf097.tar.gz |
New applet, nameif by Nick Fedchik and myself.
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 9257fc9..bd20530 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 f484ee9..d3c1e50 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 \ |