Debian Codegraph @

debian/plymouth.postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 # Several (init)scripts are referencing these executables, add compatibility
6 # symlinks for systems not converted to usr-merge
7 if [ "$1" = 'configure' -a ! -e '/bin/plymouth' ]; then
8 ln -s /usr/bin/plymouth /bin/plymouth
9 fi
10 if [ "$1" = 'configure' -a ! -e '/sbin/plymouthd' ]; then
11 ln -s /usr/sbin/plymouthd /sbin/plymouthd
12 fi
13
14 case "${1}" in
15 configure|abort-upgrade|abort-remove|abort-deconfigure)
16 if which update-initramfs >/dev/null 2>&1 && [ -e /etc/initramfs-tools/initramfs.conf ]; then
17 update-initramfs -u -k all
18 fi
19 ;;
20
21 *)
22 echo "postinst called with unknown argument \`${1}'" >&2
23 exit 1
24 ;;
25 esac
26
27 #DEBHELPER#
28
29 exit 0