summaryrefslogtreecommitdiff
path: root/testing/util-linux/util-linux.install
blob: 969a4aecfdfd660ade9ea6c1ac59454bc8bc673a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
  # we don't want use systemd-tmpfiles here because
  # the package dependency would create a circular dep.
  if [ ! -d run/uuidd ]; then
    install -o uuidd -g uuidd -dm755 run/uuidd
  fi
}

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

  post_install
}