#!/bin/execlineb -P
##if -t { test -s /etc/ssh/sshd_not_to_be_run } exit 161
foreground { mkdir -p /run/sshd }
foreground { chmod 0755 /run/sshd }
foreground { redirfd -w 1 /dev/null ssh-keygen -A }
foreground { touch /var/log/lastlog }
foreground { chgrp utmp /var/log/lastlog }
foreground { chmod 664 /var/log/lastlog }
envfile /etc/s6-rc/config/openssh.conf
importas -sCuD "" OPTS OPTS
fdmove -c 2 1
exec /usr/sbin/sshd -D -e ${OPTS}
