summaryrefslogtreecommitdiffstats
path: root/abs/core/util-linux/util-linux.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 19:05:10 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 19:05:10 (GMT)
commit7108cf5024e8a9491c1269e95426889736472d0a (patch)
treeaec3fe8fdc2b5c5571200d11584a1799d1392510 /abs/core/util-linux/util-linux.install
parentf3d2833257ef401f6311b0d1a7a7e5c7fb5bdc12 (diff)
downloadlinhes_pkgbuild-7108cf5024e8a9491c1269e95426889736472d0a.zip
linhes_pkgbuild-7108cf5024e8a9491c1269e95426889736472d0a.tar.gz
linhes_pkgbuild-7108cf5024e8a9491c1269e95426889736472d0a.tar.bz2
util-linux 2.21.2
includes our patch for agetty
Diffstat (limited to 'abs/core/util-linux/util-linux.install')
-rw-r--r--abs/core/util-linux/util-linux.install10
1 files changed, 10 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..90ce5bd
--- /dev/null
+++ b/abs/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
+}