NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/47776: dhcpcd(8) requries hostname(1)

The following reply was made to PR bin/47776; it has been noted by GNATS.

From: Izumi Tsutsui <>
Subject: Re: bin/47776: dhcpcd(8) requries hostname(1)
Date: Sat, 25 May 2013 10:41:59 +0900

 >  > "sysctl -w kern.hostname=FOO" works at least on NetBSD.
 >  Sure it works, but so does hostname(1).
 >  I guess the question is if hostname(1) is missing on your ramdisk, is 
 >  sysctl(8) available?
 Ramdisk kernels are also used for rescue media and
 sysctl(8) is useful for it (though not all ramdisks have it).
 On some ports, sysctl(8) is used to detect a console device
 (screen or serial) in /.profile script to set a proper term
 environment before starting sysinst.
 On the other hand, hostname(1) is rarely required for install or rescue.
 % find . -name list -exec grep -q sbin/sysctl {} \; -print 
 % find . -name list -exec grep -q bin/hostname {} \; -print 

Home | Main Index | Thread Index | Old Index