#!/bin/sh
# post remove script for the Debian GNU/Linux netbase package

set -e

if [ "$1" = "purge" ]
then
  update-rc.d networking remove >/dev/null
  update-rc.d inetd remove >/dev/null
  update-rc.d portmap remove >/dev/null

  if [ -L /sbin/ipfwadm ]; then
    rm /sbin/ipfwadm
  fi
fi

# Automatically added by dh_installdebconf
if [ "$1" = purge -a -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section
# Automatically added by dh_suidregister
if command -v suidunregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
        suidunregister -s netbase /bin/ping
fi
# End automatically added section
# Automatically added by dh_suidregister
if command -v suidunregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
        suidunregister -s netbase /bin/ping6
fi
# End automatically added section
# Automatically added by dh_suidregister
if command -v suidunregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
        suidunregister -s netbase /usr/bin/traceroute6
fi
# End automatically added section

