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