view debian/dropbear.prerm @ 538:7c8cdc5d2269

merge of '0a8dfaa3e5365a2004db2b55895e11f65b5cefcc' and 'ef3b41f37e9f4dd45358bc40f9559ee23f71c284'
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Mar 2009 22:30:39 +0000
parents 3ee0c2f85e1e
children
line wrap: on
line source

#!/bin/sh
set -e

test "$1" = 'remove' || test "$1" = 'deconfigure' || exit 0
if test -x /etc/init.d/dropbear; then
  if test -x /usr/sbin/invoke-rc.d; then
    invoke-rc.d dropbear stop
  else
    /etc/init.d/dropbear stop
  fi
fi