From 4c167f7c913a3f8f91cf569d7b1c6fc423156268 Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Wed, 23 Sep 2020 14:57:26 +0800 Subject: [PATCH] Check if busybox mkpasswd applet exists --- netboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netboot.sh b/netboot.sh index 254324e..a8ff777 100644 --- a/netboot.sh +++ b/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