From 3a24c03822b2e47737e8eeaff8c803bcd4ebe955 Mon Sep 17 00:00:00 2001 From: John W. Linville Date: Nov 25 2014 21:25:42 +0000 Subject: setregdomain: check for case where /etc/localtime is not a symlink Signed-off-by: John W. Linville --- diff --git a/setregdomain b/setregdomain index ab92a1e..572fe06 100755 --- a/setregdomain +++ b/setregdomain @@ -51,9 +51,9 @@ else exit 1 fi -if [ -z "$ZONE" ] +if [ -z "$ZONE" -o "$ZONE" = "$LOCALTIME" ] then - $LOGGER -s "Timezone information not set! Unable to set regulatory domain." + $LOGGER -s "Could not determine timezone! Unable to set regulatory domain." exit 1 fi