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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
>>>> 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
That part of the documentation is correct. The -s flag skips the UTC question.
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
[-- Attachment #2 --]
0 *H
010 + 0 *H
0/0]e+;B0
*H
010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA0
170713000000Z
180713235959Z0#1!0 *H
remy@luckyhands.nl0"0
*H
0
{ʨėa3tro ֑YhL֠iKÿVo^^(Qg"(5:I9Su`ny DҖN;Hal$z7 mtOn6?I_ ')p< K;sLT&&vIytXiBjp̈́n-_iמ',Nyd>ּ"YpCf`
&Կ h+tVWz 1,s'{%NH ʿ~Q3殑 00U#0la|=+qH^ċ0USAJkCB0U0U0 0 U%0++10 `HB 0FU ?0=0;+10+0)+https://secure.comodo.net/CPS0ZUS0Q0OMKIhttp://crl.comodoca.com/COMODORSAClientAuthenticationandSecureEmailCA.crl0+0}0U+0Ihttp://crt.comodoca.com/COMODORSAClientAuthenticationandSecureEmailCA.crt0$+0http://ocsp.comodoca.com0U0remy@luckyhands.nl0
*H
[jqd)M:kP?wuPBeeOCb)y
i4m `4%T8iEOZa1H thoif ߲eJ=̹i\kYv9 ;)LWOFDYs_0y7+tL{L_aܺ譔6äslG1L#cIq=Im<.ce]+ NoZ4)_%[ltQVlf{=|J}00Πj8;+kٸRV0
*H
010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1+0)U"COMODO RSA Certification Authority0
130110000000Z
280109235959Z010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA0"0
*H
0
W(vu@8v!P%yL}:X>1.4vلj=4HK hyt4z|e`'"2@rF5P3*UT+%4D5+
ZSu+=7F_Zte
>)
94Fro8pNhFF#Ne6/M{UWֱmAYT"o)CI m84$.zW4 r^M9,R$
<080U#0~=<8220Ula|=+qH^ċ0U0U0 0U
00U 0LUE0C0A?=;http://crl.comodoca.com/COMODORSACertificationAuthority.crl0q+e0c0;+0/http://crt.comodoca.com/COMODORSAAddTrustCA.crt0$+0http://ocsp.comodoca.com0
*H
x\(4O<_VΟV쏢kI/5@qB!fk&kn{hJd| q[Lǿᓬ?"@fCOݐrXurJH5;#68jle) )Y4Nezyq{: kx%iچ:w#f6HLP~jo9KXnM#:!!69i\}^M;TSX7 ̯3]Tc6O$voX*5!4.aKE8HIĹ7?Ar}r# R/h<סnuy<1 3mɔv#~&pvg' skMH#/ƨ$/uXqTu(|^-vM҆NKX7fA\X5sh2qP\YǟENRarpGtZp_"k7DdJVGz100010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA]e+;B0 + 0 *H
1 *H
0 *H
1
171204102506Z0# *H
1KmanBÙV)sd|-U0 +710010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA]e+;B0*H
1010 UGB10UGreater Manchester10USalford10U
COMODO CA Limited1=0;U4COMODO RSA Client Authentication and Secure Email CA]e+;B0
*H
4:?
}ڼ;W*-FI3UX#xFyk907JEʨ{:v8m}r̼9~d+NNan![^_V n7Dk7lCHǪcA0uqt|\qUS]kW[ ee)O>8F'iTSo_u2uh*!Lyj2k^;jk[/$B#@?,s] g
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E8876AE-B85F-4559-96BB-05B71286687F>
