diff options
author | B Stack <bgstack15@gmail.com> | 2019-09-11 14:59:55 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-09-11 14:59:55 -0400 |
commit | 7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f (patch) | |
tree | a5b2fa3712798d6d8fb4fe8062cfc70c90b94b2a /plymouth/debian/plymouth.postinst | |
parent | Merge branch 'waterfox-bump' into 'master' (diff) | |
download | stackrpms-7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f.tar.gz stackrpms-7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f.tar.bz2 stackrpms-7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f.zip |
plymouth 0.9.4 without systemd
Diffstat (limited to 'plymouth/debian/plymouth.postinst')
-rw-r--r-- | plymouth/debian/plymouth.postinst | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plymouth/debian/plymouth.postinst b/plymouth/debian/plymouth.postinst new file mode 100644 index 0000000..94544c7 --- /dev/null +++ b/plymouth/debian/plymouth.postinst @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + # For some versions in the 0.9.0 branch, the .service files + # were containing an WantedBy option. This was useless as all + # the .service files are already statically enabled. + # The option has been removed but we still need to take care of + # removing the leftover. + if dpkg --compare-versions "$2" le-nl "0.9.0-6~"; then + deb-systemd-helper purge plymouth-halt.service plymouth-kexec.service plymouth-poweroff.service plymouth-quit.service plymouth-quit-wait.service plymouth-read-write.service plymouth-reboot.service plymouth-start.service >/dev/null + deb-systemd-helper unmask plymouth-halt.service plymouth-kexec.service plymouth-poweroff.service plymouth-quit.service plymouth-quit-wait.service plymouth-read-write.service plymouth-reboot.service plymouth-start.service >/dev/null + fi + if which update-initramfs >/dev/null 2>&1; then + update-initramfs -u + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |