~burhanilinux/+junk/plymouth

« back to all changes in this revision

Viewing changes to debian/plymouth.postrm

  • Committer: Juzer Dana
  • Date: 2024-01-14 13:03:08 UTC
  • Revision ID: juzerdana@gmail.com-20240114130308-urizjbjhjqmenga6
New Commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
case "${1}" in
 
6
        remove)
 
7
                # Remove the compatibility symlinks
 
8
                if [ -L '/bin/plymouth' ]; then
 
9
                        rm /bin/plymouth
 
10
                fi
 
11
                if [ -L '/sbin/plymouthd' ]; then
 
12
                        rm /sbin/plymouthd
 
13
                fi
 
14
                if which update-initramfs >/dev/null 2>&1; then
 
15
                        update-initramfs -u
 
16
                fi
 
17
                ;;
 
18
        purge)
 
19
                rm -f /var/lib/plymouth/boot-duration
 
20
                ;;
 
21
        upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
22
 
 
23
                ;;
 
24
 
 
25
        *)
 
26
                echo "postrm called with unknown argument \`${1}'" >&2
 
27
                exit 1
 
28
                ;;
 
29
esac
 
30
 
 
31
#DEBHELPER#
 
32
 
 
33
exit 0