New applet, nameif by Nick Fedchik and myself.

This commit is contained in:
Glenn L McGrath
2002-12-13 00:01:44 +00:00
parent 9130c85847
commit f03c933e47
5 changed files with 248 additions and 0 deletions

View File

@@ -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

View File

@@ -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 \