#!/usr/bin/ksh
#
# wanpipe postrm
############################################
set -o errexit

case $1 in
   purge)
      # remove init.d links
      update-rc.d wanpipe remove >/dev/null

      # remove logfile(s)
      rm -f /var/log/wanpipe*
  
      # remove interface conf scripts
      rm -rf /etc/wanpipe
      ;;

   remove)
      :
      ;;
   
   abort-upgrade)
      # error unwind
      :
      ;;
      
   abort-install)
      # error unwind
      :
      ;;

   *)
      :
      ;;
esac

exit 0
