summaryrefslogtreecommitdiffstats
path: root/abs/core/util-linux/util-linux.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/util-linux/util-linux.install')
-rw-r--r--abs/core/util-linux/util-linux.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/abs/core/util-linux/util-linux.install b/abs/core/util-linux/util-linux.install
new file mode 100644
index 0000000..4c0bb10
--- /dev/null
+++ b/abs/core/util-linux/util-linux.install
@@ -0,0 +1,21 @@
+post_install() {
+ # we don't want use systemd-tmpfiles here because
+ # the package dependency would create a circular dep.
+ if [ ! -d run/uuidd ]; then
+ # refer to uid/gid by number to avoid dependency on filesystem
+ install -o 68 -g 68 -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
+}