浏览代码

Check if busybox mkpasswd applet exists

Bohan Yang 5 年之前
父节点
当前提交
4c167f7c91
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netboot.sh

+ 1 - 1
netboot.sh

@@ -268,7 +268,7 @@ if [ "$DEBI_SKIP_USER" != true ]; then
         else
             DEBI_PASSWORD="$(mkpasswd -m sha512crypt "$DEBI_PASSWORD")"
         fi
-    elif command_exists busybox; then
+    elif command_exists busybox && busybox mkpasswd --help >/dev/null 2>&1; then
         if [ -z "$DEBI_PASSWORD" ]; then
             DEBI_PASSWORD="$(busybox mkpasswd -m sha512)"
         else