aboutsummaryrefslogtreecommitdiff
path: root/hostname.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-16 20:57:15 +0000
committerMatt Kraai <kraai@debian.org>2000-07-16 20:57:15 +0000
commitbf181b9338152759fd56c8009e9a962a84808e7c (patch)
treee8c416c791c690f661c513340662e4e98ff3464a /hostname.c
parent3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff)
downloadbusybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.gz
busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.bz2
busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.zip
Extract usage information into a separate file.
Diffstat (limited to 'hostname.c')
-rw-r--r--hostname.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/hostname.c b/hostname.c
index 60f66c073..77b545ded 100644
--- a/hostname.c
+++ b/hostname.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * $Id: hostname.c,v 1.11 2000/07/14 01:51:25 kraai Exp $ 3 * $Id: hostname.c,v 1.12 2000/07/16 20:57:15 kraai Exp $
4 * Mini hostname implementation for busybox 4 * Mini hostname implementation for busybox
5 * 5 *
6 * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> 6 * Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -30,21 +30,6 @@
30#include <unistd.h> 30#include <unistd.h>
31#include <stdio.h> 31#include <stdio.h>
32 32
33static const char *hostname_usage =
34 "hostname [OPTION] {hostname | -F file}\n"
35#ifndef BB_FEATURE_TRIVIAL_HELP
36 "\nGet or set the hostname or DNS domain name. If a hostname is given\n"
37 "(or a file with the -F parameter), the host name will be set.\n\n"
38 "Options:\n"
39 "\t-s\t\tShort\n"
40
41 "\t-i\t\tAddresses for the hostname\n"
42 "\t-d\t\tDNS domain name\n"
43 "\t-F FILE\t\tUse the contents of FILE to specify the hostname\n"
44#endif
45 ;
46
47
48void do_sethostname(char *s, int isfile) 33void do_sethostname(char *s, int isfile)
49{ 34{
50 FILE *f; 35 FILE *f;