Check if busybox mkpasswd applet exists

pull/8/head
Bohan Yang 5 years ago committed by GitHub
parent c95c207bcd
commit 4c167f7c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save