#!/bin/sh
# Arg: 1
# opensshweak-sshd - postinst
#!/bin/sh
# Begin section update-alternatives
update-alternatives --install /usr/sbin/sshd sshd /usr/sbin/sshd.opensshweak 60
update-alternatives --install /etc/sshd_init.conf init-sshd /etc/sshd_init.conf.opensshweak 60
# End section update-alternatives
# Begin section update-rc.d
if type update-rc.d >/dev/null 2>/dev/null; then
	if [ -n "$D" ]; then
		OPT="-r $D"
	else
		OPT="-s"
	fi
	update-rc.d $OPT sshd defaults 9
fi
# End section update-rc.d