Update netboot.sh

This commit is contained in:
Brent, Yang Bohan
2019-03-25 00:19:38 +08:00
committed by GitHub
parent 76dabcb45d
commit d306652c97
+3 -1
View File
@@ -150,11 +150,13 @@ else
fi
fi
if [ -z "$PASSWD" ] && [ "$MANUALLY" != true ]; then
if [ "$MANUALLY" != true ]; then
if [ -z "$PASSWD" ]; then
PASSWD=$(mkpasswd -m sha-512)
else
PASSWD=$(mkpasswd -m sha-512 "$PASSWD")
fi
fi
if [ "$DRYRUN" != true ]; then