HOME


Mini Shell 1.0
DIR: /proc/self/root/var/lib/dpkg/info/
Upload File :
Current File : //proc/self/root/var/lib/dpkg/info/dhcpcd-base.postrm
#!/bin/sh
set -e
if [ "$1" = purge ]; then
  if [ -x "$(command -v deluser)" ]; then
      deluser --quiet --system dhcpcd > /dev/null || true
    else
      echo >&2 "Not removing dhcpcd system account because deluser command was not found"
  fi
  # The dhcpcd package stores leases and DUID in this directory,
  # so we need to remove it on purge.
  rm -rf /var/lib/dhcpcd
fi