diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-04-11 03:29:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-11 03:29:49 +0200 |
commit | 5bc8c005a8e15c43285bc595a8d404de67a482ac (patch) | |
tree | 98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /networking/hostname.c | |
parent | 73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff) | |
download | busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2 busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip |
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/hostname.c')
-rw-r--r-- | networking/hostname.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/networking/hostname.c b/networking/hostname.c index 66b52dd90..49a3e89bb 100644 --- a/networking/hostname.c +++ b/networking/hostname.c | |||
@@ -9,6 +9,25 @@ | |||
9 | * | 9 | * |
10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | |||
13 | //usage:#define hostname_trivial_usage | ||
14 | //usage: "[OPTIONS] [HOSTNAME | -F FILE]" | ||
15 | //usage:#define hostname_full_usage "\n\n" | ||
16 | //usage: "Get or set hostname or DNS domain name\n" | ||
17 | //usage: "\nOptions:" | ||
18 | //usage: "\n -s Short" | ||
19 | //usage: "\n -i Addresses for the hostname" | ||
20 | //usage: "\n -d DNS domain name" | ||
21 | //usage: "\n -f Fully qualified domain name" | ||
22 | //usage: "\n -F FILE Use FILE's content as hostname" | ||
23 | //usage: | ||
24 | //usage:#define hostname_example_usage | ||
25 | //usage: "$ hostname\n" | ||
26 | //usage: "sage\n" | ||
27 | //usage: | ||
28 | //usage:#define dnsdomainname_trivial_usage NOUSAGE_STR | ||
29 | //usage:#define dnsdomainname_full_usage "" | ||
30 | |||
12 | #include "libbb.h" | 31 | #include "libbb.h" |
13 | 32 | ||
14 | static void do_sethostname(char *s, int isfile) | 33 | static void do_sethostname(char *s, int isfile) |