File: cryptsetup-nuke-password.postrm

package info (click to toggle)
cryptsetup-nuke-password 4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 144 kB
  • sloc: sh: 452; ansic: 128; makefile: 20
file content (13 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

if [ "$1" = "remove" ]; then
    dpkg-divert --rename --package cryptsetup-nuke-password \
                        --divert /lib/cryptsetup/askpass.cryptsetup \
                        --remove /lib/cryptsetup/askpass
elif [ "$1" = "purge" ]; then
    rm -rf /etc/cryptsetup-nuke-password
fi

#DEBHELPER#