fixed generation of initial password
This commit is contained in:
parent
f862f767be
commit
f6edd86471
@ -196,8 +196,10 @@ if [ ! -f /data/etc/hostname ]; then
|
||||
fi
|
||||
|
||||
# root password
|
||||
if [ ! -f /data/etc/shadow ]; then
|
||||
root_pw=\$(mkpasswd -m sha-512 -s "${DEFAULT_ROOT_PASSWORD}")
|
||||
echo "root:\${root_pw}:0:0:::::" > /data/etc/shadow
|
||||
fi
|
||||
|
||||
# interface
|
||||
mkdir -p /data/etc/network
|
||||
|
Loading…
Reference in New Issue
Block a user