From 1884bdc2fa806e955f1bf4317b949b5017c7cc30 Mon Sep 17 00:00:00 2001 From: John W. Linville Date: Nov 25 2014 21:25:42 +0000 Subject: setregdomain: use "readlink -f" to cleanup ZONE conversion Signed-off-by: John W. Linville --- diff --git a/setregdomain b/setregdomain index 3e4daf8..ab92a1e 100755 --- a/setregdomain +++ b/setregdomain @@ -44,9 +44,8 @@ fi if [ -f "$LOCALTIME" ] then - ZONE=$(readlink $LOCALTIME) + ZONE=$(readlink -f $LOCALTIME) ZONE=${ZONE#/usr/share/zoneinfo/} - ZONE=${ZONE#../usr/share/zoneinfo/} else $LOGGER -s "Timezone information not found! Unable to set regulatory domain." exit 1