pikvm/pikvm#107: change ssh port in pikvm.txt

This commit is contained in:
Maxim Devaev 2021-10-26 09:04:14 +03:00
parent 7c9405459e
commit 10e6e53006

View File

@ -73,6 +73,13 @@ if [ -n "$FIRSTBOOT" ]; then
fi fi
# ========== SSH ==========
if [ -n "$SSH_PORT" ]; then
sed -i -e "s/^\s*#*\s*Port\s\+.*$/Port $SSH_PORT/g" /etc/ssh/sshd_config
fi
# ========== Wi-Fi ========== # ========== Wi-Fi ==========
# Set the regulatory domain for wifi, if defined. # Set the regulatory domain for wifi, if defined.