summaryrefslogtreecommitdiff
path: root/core/util-linux/util-linux.install
blob: 90ce5bd73258ecdf15281b7d9271d518cc384ba0 (plain)
1
2
3
4
5
6
7
8
9
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
}