summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-09-18 18:27:30 +0000
committerache <ache@FreeBSD.org>1994-09-18 18:27:30 +0000
commit2e7cb009a659e33d7bba5a3188db77b7c07c8b22 (patch)
tree132fcc18dcec32fffc1ebf0119ef121d99184e39 /usr.sbin/tzsetup
parent98195109882c9bcaba0841678303a1f01a52062e (diff)
downloadFreeBSD-src-2e7cb009a659e33d7bba5a3188db77b7c07c8b22.zip
FreeBSD-src-2e7cb009a659e33d7bba5a3188db77b7c07c8b22.tar.gz
Add 'rm -f /etc/localtime' before cp to /etc/localtime,
I have a link here and got strange results without 'rm'
Diffstat (limited to 'usr.sbin/tzsetup')
-rw-r--r--usr.sbin/tzsetup/tzsetup.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/tzsetup/tzsetup.sh b/usr.sbin/tzsetup/tzsetup.sh
index a71cfff..8b71091 100644
--- a/usr.sbin/tzsetup/tzsetup.sh
+++ b/usr.sbin/tzsetup/tzsetup.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id$
+# $Id: tzsetup.sh,v 1.1 1994/09/13 23:01:59 wollman Exp $
#
# Copyright 1994, Garrett A. Wollman. All rights reserved.
# This script is subject to the terms and conditions listed at the
@@ -47,6 +47,7 @@ select() {
echo -n "I think the time in `echo $city | tr _ ' '` is: "
TZ=$where/$city date
if askyn "Is this what you wanted" y; then
+ rm -f /etc/localtime
cp /usr/share/zoneinfo/$where/$city \
/etc/localtime && echo "Timezone changed."
return 0
OpenPOWER on IntegriCloud