[crda] setregdomain: check for case where /etc/localtime is not a symlink
John W. Linville
linville at fedoraproject.org
Tue Nov 25 21:32:31 UTC 2014
commit 3a24c03822b2e47737e8eeaff8c803bcd4ebe955
Author: John W. Linville <linville at tuxdriver.com>
Date: Tue Nov 18 16:50:12 2014 -0500
setregdomain: check for case where /etc/localtime is not a symlink
Signed-off-by: John W. Linville <linville at tuxdriver.com>
setregdomain | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
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
More information about the scm-commits
mailing list