diff options
Diffstat (limited to 'core/systemd/systemd.install')
-rw-r--r-- | core/systemd/systemd.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/systemd/systemd.install b/core/systemd/systemd.install index 3b36f0c5d..f22536360 100644 --- a/core/systemd/systemd.install +++ b/core/systemd/systemd.install @@ -38,6 +38,19 @@ mask_net_naming() { fi } +_208_changes() { + chown root:systemd-journal var/log/journal + chmod 2755 var/log/journal + + if [ -e var/lib/backlight ] && [ ! -e var/lib/systemd/backlight ]; then + mv -T var/lib/backlight var/lib/systemd/backlight + fi + + if [ -e var/lib/random-seed ] && [ ! -e var/lib/systemd/random-seed ]; then + mv -T var/lib/random-seed var/lib/systemd/random-seed + fi +} + post_install() { post_common @@ -98,6 +111,10 @@ post_upgrade() { printf ' this hook, you must remove it from /etc/mkinitcpio.conf. A "systemd"\n' printf ' hook has been added which provides this functionality, and more.\n' fi + + if [ "$(vercmp 208-1 "$2")" -eq 1 ]; then + _208_changes + fi } # vim:set ts=2 sw=2 et: |