From owner-freebsd-questions@freebsd.org Mon Dec 4 10:20:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1AADDF6F64 for ; Mon, 4 Dec 2017 10:20:21 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9957A1B0E for ; Mon, 4 Dec 2017 10:20:21 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from [90.187.37.173] (helo=workstation) by www81.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES128-GCM-SHA256:128) (Exim 4.85_2) (envelope-from ) id 1eLnrG-0000Oy-6l; Mon, 04 Dec 2017 11:20:18 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: FreeBSD , "Remy Zandwijk" Subject: Re: tzsetup without menu? References: <776CD363-26A1-4628-B21E-2CA266609BAE@luckyhands.nl> Date: Mon, 04 Dec 2017 11:20:27 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.99.2/24099/Mon Dec 4 10:09:08 2017) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 10:20:21 -0000 Am .12.2017, 11:09 Uhr, schrieb Remy Zandwijk : >>> The tzsetup manual page on 11.1-RELEASE-p4 says: >>> >>> It is possible to short-circuit the menu system by specifying the >>> location of a zoneinfo_file or the name of the zoneinfo_name on the >>> command line; this is intended mainly for pre-configured >>> installation >>> scripts or people who know which zoneinfo they want to install. >>> >>> >>> However, when I run the command like this, I still get the menu: >>> >>> tzsetup -s /usr/share/zoneinfo/Europe/Amsterdam >>> >>> >>> >>> Am I doing it wrong or does the tzsetup command not act like >>> documented? >>> >>> >>> -Remy >>> >> >> I think you could just copy the zonefile >> >> # md5 /usr/share/zoneinfo/Europe/Berlin /etc/localtime >> MD5 (/usr/share/zoneinfo/Europe/Berlin) = >> 4790e83465681cefbf852aed265354bf >> MD5 (/etc/localtime) = 4790e83465681cefbf852aed265354bf >> >> >> thus >> >> cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime >> echo "Europe/Amsterdam" > /var/db/zoneinfo > > Thanks, that seems to work(around). > > But still: either the documentation is wrong or the command has a bug. > > -Remy > Wait ... this wouldn't adjust the clock, and ignore UTC setting /etc/wall_cmos_clock better: echo "Europe/Amsterdam" > /var/db/zoneinfo touch /etc/wall_cmos_clock # if clock is set to local time tzsetup -r The documentation is not wrong. "Skip the initial question about adjusting the clock if not set to UTC" so it just skips the UTC question