diff options
-rwxr-xr-x | scripts/kvmd-bootconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig index a746c2cd..f7931e5f 100755 --- a/scripts/kvmd-bootconfig +++ b/scripts/kvmd-bootconfig @@ -73,6 +73,13 @@ if [ -n "$FIRSTBOOT" ]; then 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 ========== # Set the regulatory domain for wifi, if defined. |