Browse Source

Update netboot.sh

Brent, Yang Bohan 7 years ago
parent
commit
d306652c97
1 changed files with 3 additions and 1 deletions
  1. 3 1
      netboot.sh

+ 3 - 1
netboot.sh

@@ -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