Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 783f89a1424fd0617a27a70b9a089569 > scriptlet

timezone-2019c-1.mga7.armv7hl.rpm

Triggers

timezone < 6:2016i-4

/bin/sh
# (cg) Transition to symlinked localtime file
if [ ! -L /etc/localtime -a -f /etc/sysconfig/clock ]; then
	# Read zone info from (now legacy sysconfig/clock)
	# (the symlink destination is now the canonical way of finding out which
	# timezone we are in)
	unset ZONE
	. /etc/sysconfig/clock

	if [ -z "$ZONE" ]; then
		ZONE=UTC
	fi

	if [ -f /usr/share/zoneinfo/$ZONE ]; then
		ln -sf /usr/share/zoneinfo/$ZONE /etc/localtime
	fi
fi
if [ ! -L /etc/localtime -a -f /usr/share/zoneinfo/UTC ]; then
	ln -sf /usr/share/zoneinfo/UTC /etc/localtime
fi