summaryrefslogtreecommitdiffhomepage
path: root/debian/dropbear.prerm
blob: e63cdb8980ddb76c71097b300b11f6ce813ceeba (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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