summaryrefslogtreecommitdiffstats
path: root/setup-timezone.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-timezone.in')
-rwxr-xr-xsetup-timezone.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/setup-timezone.in b/setup-timezone.in
index 8c81a58..f1a85c0 100755
--- a/setup-timezone.in
+++ b/setup-timezone.in
@@ -14,7 +14,7 @@ Sets the timezone for the system.
options:
-h Show this help
- -z Specify the timezone as a subfolder of $zroot
+ -z Specify the timezone as a subdirectory of $zroot
__EOF__
exit 1
}
@@ -45,7 +45,7 @@ valid_tz() {
while getopts "hz:" opt; do
case $opt in
h) usage;;
- z) ZONEINFOFOLDER="$OPTARG";;
+ z) ZONEINFODIR="$OPTARG";;
esac
done
@@ -57,8 +57,8 @@ zonepath=$(cat /etc/TZ 2>/dev/null)
[ -z "$zonepath" ] && zonepath="UTC"
while true; do
- if [ -n "$ZONEINFOFOLDER" ]; then
- TZ=$(posixtz "$ZONEINFOFOLDER") || echo "Failed to convert '$ZONEINFOFOLDER' to POSIX TZ"
+ if [ -n "$ZONEINFODIR" ]; then
+ TZ=$(posixtz "$ZONEINFODIR") || echo "Failed to convert '$ZONEINFODIR' to POSIX TZ"
if [ -n "$TZ" ]; then
echo $TZ > /etc/TZ || rm -f /etc/TZ
fi