浏览代码

Don't configure ssh if it isn't installed

Bob Mottram 8 年前
父节点
当前提交
cdfaa8cca7
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-image-customise

+ 4
- 0
src/freedombone-image-customise 查看文件

@@ -246,6 +246,10 @@ following commands, then enter your details.
246 246
 }
247 247
 
248 248
 configure_ssh() {
249
+    if [[ $VARIANT == "mesh" || $VARIANT == "meshclient" || $VARIANT != "meshusb" ]]; then
250
+        return
251
+    fi
252
+
249 253
     sed -i "s/Port .*/Port ${SSH_PORT}/g" $rootdir/etc/ssh/sshd_config
250 254
 
251 255
     if [[ "$SSH_PUBKEY" != "no" ]]; then