diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-12-13 00:01:44 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-12-13 00:01:44 +0000 |
commit | 6f0d2abefc97178181f7e8df3c0bcecbfb4265b5 (patch) | |
tree | ba401fac3566fc280a93c7933e4c33767acd99ee /include | |
parent | aee1a1f4ff020e5a2644b4314e4ae0af80d06eca (diff) | |
download | busybox-w32-6f0d2abefc97178181f7e8df3c0bcecbfb4265b5.tar.gz busybox-w32-6f0d2abefc97178181f7e8df3c0bcecbfb4265b5.tar.bz2 busybox-w32-6f0d2abefc97178181f7e8df3c0bcecbfb4265b5.zip |
New applet, nameif by Nick Fedchik and myself.
git-svn-id: svn://busybox.net/trunk/busybox@6203 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 9257fc940..bd2053039 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -368,6 +368,9 @@ | |||
368 | #ifdef CONFIG_MV | 368 | #ifdef CONFIG_MV |
369 | APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 369 | APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
370 | #endif | 370 | #endif |
371 | #ifdef CONFIG_NAMEIF | ||
372 | APPLET(nameif, nameif_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
373 | #endif | ||
371 | #ifdef CONFIG_NC | 374 | #ifdef CONFIG_NC |
372 | APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 375 | APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
373 | #endif | 376 | #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 @@ | |||
1453 | #define mv_example_usage \ | 1453 | #define mv_example_usage \ |
1454 | "$ mv /tmp/foo /bin/bar\n" | 1454 | "$ mv /tmp/foo /bin/bar\n" |
1455 | 1455 | ||
1456 | #define nameif_trivial_usage \ | ||
1457 | "[OPTIONS] [{IFNAME MACADDR}]" | ||
1458 | #define nameif_full_usage \ | ||
1459 | "Nameif renaming network interface while it in the down state.\n\n" \ | ||
1460 | "Options:\n" \ | ||
1461 | "\t-c FILE\t\tUse another configuration file (default is /etc/mactab)\n" \ | ||
1462 | "\t-s\t\tUse syslog (LOCAL0 facility).\n" \ | ||
1463 | "\tIFNAME MACADDR\tnew_interface_name interface_mac_address\n" | ||
1464 | #define nameif_example_usage \ | ||
1465 | "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \ | ||
1466 | " or\n" \ | ||
1467 | "$ nameif -c /etc/my_mactab_file\n" \ | ||
1468 | |||
1456 | #define nc_trivial_usage \ | 1469 | #define nc_trivial_usage \ |
1457 | "[OPTIONS] [IP] [port]" | 1470 | "[OPTIONS] [IP] [port]" |
1458 | #define nc_full_usage \ | 1471 | #define nc_full_usage \ |