File: postrm

package info (click to toggle)
dhcpcd5 7.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,932 kB
  • sloc: ansic: 29,556; sh: 1,829; makefile: 318
file content (16 lines) | stat: -rw-r--r-- 316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

# The dhcpcd package stores leases and DUID in this directory, so we need to
# remove it on purge.
if [ "$1" = purge ]; then
  rm -rf /var/lib/dhcpcd
fi

# Remove the symlink added in postinst (if it exists).
if [ "$1" = 'remove' ] && [ -L '/sbin/dhcpcd' ]; then
  rm /sbin/dhcpcd
fi

#DEBHELPER#