1178172Simp#!/bin/sh 2178172Simp#- 3178172Simp# Copyright (c) 2010 iXsystems, Inc. All rights reserved. 4178172Simp# 5178172Simp# Redistribution and use in source and binary forms, with or without 6178172Simp# modification, are permitted provided that the following conditions 7178172Simp# are met: 8178172Simp# 1. Redistributions of source code must retain the above copyright 9178172Simp# notice, this list of conditions and the following disclaimer. 10178172Simp# 2. Redistributions in binary form must reproduce the above copyright 11178172Simp# notice, this list of conditions and the following disclaimer in the 12178172Simp# documentation and/or other materials provided with the distribution. 13178172Simp# 14178172Simp# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15178172Simp# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16178172Simp# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17178172Simp# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18178172Simp# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19178172Simp# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20178172Simp# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21178172Simp# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22178172Simp# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23178172Simp# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24178172Simp# SUCH DAMAGE. 25178172Simp# 26178172Simp# $FreeBSD$ 27178172Simp 28178172Simp# Backend script which lists all the available timezones for front-ends to display 29178172Simpegrep -v '^#' /usr/share/zoneinfo/zone.tab |\ 30178172Simp tr -s "\t" ":" |\ 31178172Simp cut -d ":" -f 3-4 |\ 32178172Simp sort 33178172Simp 34178172Simpexit 0 35