Commit 99b0d95d authored by Michael Biebl's avatar Michael Biebl Committed by Tollef Fog Heen
Browse files

Migrate hwclock configuration.

Do a one-time migration of the hwclock configuration. If UTC is set to "no" in
/etc/default/rcS, create /etc/adjtime and add the "LOCAL" setting.
parent a1f4d703
......@@ -11,6 +11,8 @@ systemd (35-1) UNRELEASED; urgency=low
* As autoreconf doesn't like intltool, override dh_autoreconf and call
intltoolize and autoreconf ourselves.
* Add Build-Depends on intltool.
* Do a one-time migration of the hwclock configuration. If UTC is set to
"no" in /etc/default/rcS, create /etc/adjtime and add the "LOCAL" setting.
-- Tollef Fog Heen <tfheen@debian.org> Wed, 14 Sep 2011 08:25:17 +0200
......
......@@ -16,6 +16,13 @@ if [ -n "$2" ]; then
rmdir --ignore-fail-on-non-empty /cgroup
fi
fi
# Do a one-time migration of the local time setting
if dpkg --compare-versions "$2" lt "33-1"; then
. /etc/default/rcS
if [ $UTC ="no" ] && [ ! -e /etc/adjtime ]; then
echo "0 0 0\0\0LOCAL" > /etc/adjtime
fi
fi
fi
systemd-machine-id-setup
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment