1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-18 05:18:47 +00:00
simplesshd/dropbear/debian/dropbear.prerm
2014-12-10 16:56:49 -05:00

12 lines
232 B
Bash

#!/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