Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2017 11:25:05 +0100
From:      Remy Zandwijk <remy@luckyhands.nl>
To:        Michael Ross <gmx@ross.cx>, FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: tzsetup without menu?
Message-ID:  <6E8876AE-B85F-4559-96BB-05B71286687F@luckyhands.nl>
In-Reply-To: <op.zapwcd09g7njmm@workstation>
References:  <776CD363-26A1-4628-B21E-2CA266609BAE@luckyhands.nl> <op.zapvf6nzg7njmm@workstation> <FAEB7D50-F137-4A8D-AE3C-6D1CF8FC98DF@luckyhands.nl> <op.zapwcd09g7njmm@workstation>

next in thread | previous in thread | raw e-mail | index | archive | help

--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/FWzx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W5kIFNlY3VyZSBFbWFpbCBDQQIQDp/ZD11luys790KqjgTK1jANBgkqhkiG9w0BAQEF
AASCAQA0OhDsP/YKfRvavIPgCDu0pwJXKi1GCEkzH+9VWCPHD664eEZ5a58ZOTDunBUEN0oarNZF
n++YyqiIe/b/mjoLnNeJnnb4DDhtgxe7ffpyzLyEOX5kA4cr6k7bTrthbiFbr15f4pRWA9gJbrQ3
z0Sba8YZ4bw3zu9s9pHp/5VD4kjHqrBjQeUwFnWEGptxdHyAXHHwH1WZsJC8U11rV1sAZc1l5SlP
lj63OEaIJ2lU7fP1U4j2wYNvX3Uyt+TGdaUb983XyhxoEMGJvyohk0wXef1qMrf+6uVrXrGTz/A7
amsH0lsv+SRC+sYj0N37kYERtUC3hD+0pyzic10AZ8CxAAAAAAAA
--Apple-Mail=_F963592B-A799-4CE5-9891-F8AC9B210701--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E8876AE-B85F-4559-96BB-05B71286687F>