summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbalocca <rbalocca@fugazi.vyatta.com>2007-11-27 14:53:47 -0800
committerrbalocca <rbalocca@fugazi.vyatta.com>2007-11-27 14:53:47 -0800
commit9ddd0d9ed6eb972ea985be386eb91b85fc029c93 (patch)
treea908e8dabe641d204c72afc3833c041b730235bb
parentb1fd90f10917c28e25cca0eba1ec7d6200679bdc (diff)
parent3b95ed69d8e9a82430877bed94698a11ea94b94a (diff)
downloadvyatta-cfg-quagga-9ddd0d9ed6eb972ea985be386eb91b85fc029c93.tar.gz
vyatta-cfg-quagga-9ddd0d9ed6eb972ea985be386eb91b85fc029c93.zip
Merge branch 'master' into glendale
-rw-r--r--templates/system/time-zone/node.def7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/system/time-zone/node.def b/templates/system/time-zone/node.def
index 72ca791e..60e87e12 100644
--- a/templates/system/time-zone/node.def
+++ b/templates/system/time-zone/node.def
@@ -12,7 +12,12 @@ case \"$(@)\" in \
[Pp][Hh][Oo]*) LTF=\"\\\$LTF/US/Arizona\" ;; \
*) LTF=\"\\\$LTF/Etc/$(@)\" ;; \
esac && \
-sudo ln -fs \\\$LTF /etc/localtime"
+if [ -e \"\\\$LTF\" ]; then \
+ sudo ln -fs \\\$LTF /etc/localtime; \
+else \
+ echo \"Invalid timezone\"; \
+ exit 1; \
+fi"
delete: "sudo ln -fs /usr/share/zoneinfo/GMT /etc/localtime"
#allowed: local -a list=( "Los Angeles" "New York" "Denver" "Chicago" \
# "Anchorage" "Honolulu" "Phoenix" "GMT" )