diff options
Diffstat (limited to 'core/util-linux/util-linux.install')
-rw-r--r-- | core/util-linux/util-linux.install | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/util-linux/util-linux.install b/core/util-linux/util-linux.install new file mode 100644 index 000000000..90ce5bd73 --- /dev/null +++ b/core/util-linux/util-linux.install @@ -0,0 +1,10 @@ +post_upgrade() { + if [ "$(vercmp $2 2.21.2-4)" -lt 0 ]; then + if [ -f /var/lib/hwclock/adjtime ]; then + mv /var/lib/hwclock/adjtime /etc/adjtime + fi + if [ -d /var/lib/hwclock ]; then + rmdir /var/lib/hwclock + fi + fi +} |