Revert "firstboot: Restart SSH server at first boot"

This reverts commit b62b2b3306.
This commit is contained in:
Dongjin Kim
2022-04-13 03:20:55 +09:00
parent cb97cd908a
commit 4a5ace6581

View File

@@ -23,6 +23,17 @@ resize2fs ${rootdev}
rm -f /etc/ssh/ssh_host* && ssh-keygen -A
service ssh restart
case $(cat /sys/firmware/devicetree/base/model) in
"Hardkernel Odroid XU4")
need_tweak="true"
;;
*)
need_tweak="false"
;;
esac
if [ "x${need_tweak}" = "xtrue" ]; then
service ssh restart
fi
exit 0