From owner-freebsd-questions@freebsd.org Mon Dec 4 10:25:08 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 F23CEDF721F for ; Mon, 4 Dec 2017 10:25:08 +0000 (UTC) (envelope-from remy@luckyhands.nl) Received: from upuaut.luckyhands.nl (upuaut.luckyhands.nl [37.97.167.254]) (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 9AFA61F93 for ; Mon, 4 Dec 2017 10:25:08 +0000 (UTC) (envelope-from remy@luckyhands.nl) Received: from 168.15.37.130.tun.labs.vu.nl (168.15.37.130.tun.labs.vu.nl [130.37.15.168]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by upuaut.luckyhands.nl (Postfix) with ESMTPSA id 7E90D1203E6; Mon, 4 Dec 2017 11:25:06 +0100 (CET) From: Remy Zandwijk Content-Type: multipart/signed; boundary="Apple-Mail=_F963592B-A799-4CE5-9891-F8AC9B210701"; protocol="application/pkcs7-signature"; micalg=sha1 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: tzsetup without menu? Date: Mon, 4 Dec 2017 11:25:05 +0100 References: <776CD363-26A1-4628-B21E-2CA266609BAE@luckyhands.nl> To: Michael Ross , FreeBSD In-Reply-To: Message-Id: <6E8876AE-B85F-4559-96BB-05B71286687F@luckyhands.nl> X-Mailer: Apple Mail (2.3445.4.7) 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:25:09 -0000 --Apple-Mail=_F963592B-A799-4CE5-9891-F8AC9B210701 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >>>> The tzsetup manual page on 11.1-RELEASE-p4 says: >>>>=20 >>>> 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. >>>>=20 >>>>=20 >>>> However, when I run the command like this, I still get the menu: >>>>=20 >>>> tzsetup -s /usr/share/zoneinfo/Europe/Amsterdam >>>>=20 >>>>=20 >>>>=20 >>>> Am I doing it wrong or does the tzsetup command not act like = documented? >>>>=20 >>>>=20 >>>> -Remy >>>>=20 >>>=20 >>> I think you could just copy the zonefile >>>=20 >>> # md5 /usr/share/zoneinfo/Europe/Berlin /etc/localtime >>> MD5 (/usr/share/zoneinfo/Europe/Berlin) =3D = 4790e83465681cefbf852aed265354bf >>> MD5 (/etc/localtime) =3D 4790e83465681cefbf852aed265354bf >>>=20 >>>=20 >>> thus >>>=20 >>> cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime >>> echo "Europe/Amsterdam" > /var/db/zoneinfo >>=20 >> Thanks, that seems to work(around). >>=20 >> But still: either the documentation is wrong or the command has a = bug. >>=20 >> -Remy >>=20 >=20 > Wait ... this wouldn't adjust the clock, and ignore UTC setting = /etc/wall_cmos_clock >=20 > better: > echo "Europe/Amsterdam" > /var/db/zoneinfo > touch /etc/wall_cmos_clock # if clock is set to local time > tzsetup -r >=20 >=20 > 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 That part of the documentation is correct. The -s flag skips the UTC = question.=20 I was referring to: 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. I provided the location of the zoneinfo file and still the menu pops up. = When I read "possible to short-circuit the menu system", I interpret = that as that the menu won't pop up. -Remy --Apple-Mail=_F963592B-A799-4CE5-9891-F8AC9B210701 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILHTCCBS8w ggQXoAMCAQICEA6f2Q9dZbsrO/dCqo4EytYwDQYJKoZIhvcNAQELBQAwgZcxCzAJBgNVBAYTAkdC MRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoT EUNPTU9ETyBDQSBMaW1pdGVkMT0wOwYDVQQDEzRDT01PRE8gUlNBIENsaWVudCBBdXRoZW50aWNh dGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBMB4XDTE3MDcxMzAwMDAwMFoXDTE4MDcxMzIzNTk1OVow IzEhMB8GCSqGSIb3DQEJARYScmVteUBsdWNreWhhbmRzLm5sMIIBIjANBgkqhkiG9w0BAQEFAAOC AQ8AMIIBCgKCAQEAvbp7iZnTyqjEl+20AxgOYfW+M3Ry281v4iDWkVnhaEzWoIFpS+fDv/FWzxtv XqHvql4TuPMoqPZRZyIoNTrr0knSOVOTgnX4mIFgja5ueQBE0pZOO567SPzgYZ9s46MkerY3CW10 T24SNj8DSV/DAN0ngc4pnhxwPB+bxABLCDu7c5bTTLqqzQ/7VCYmdkl5oHRYq6LA2NlpE5dCi2rl r3DNhPluhi1fadeeJ/vwryxOmXnjZD6k1rzAniJZcEMPZmAKwyal5vQd1L/4IGjuK3RWjMpXeugA 2cD2DjEZEywecyd7mRMl805IFAgJguIA0ezKv37N61HqsDO/5q6R5QIDAQABo4IB6DCCAeQwHwYD VR0jBBgwFoAUgq9sjPjF/pZhfOgfPStxSF7Ei8AwHQYDVR0OBBYEFFNBodvG+kr8sZdrjY6YsOxD QoDLMA4GA1UdDwEB/wQEAwIFoDAMBgNVHRMBAf8EAjAAMCAGA1UdJQQZMBcGCCsGAQUFBwMEBgsr BgEEAbIxAQMFAjARBglghkgBhvhCAQEEBAMCB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