postscript.sh: do not add admin to passwd more than once

This commit is contained in:
Calin Crisan 2019-01-25 23:01:13 +02:00
parent f67bf5076e
commit a7056fef64

View File

@ -48,5 +48,7 @@ if [ -r ${BOARD_DIR}/os.conf ]; then
fi fi
# add admin user alias # add admin user alias
echo "admin:x:0:0:root:/root:/bin/sh" >> ${TARGET}/etc/passwd if ! grep -E '^admin:' ${TARGET}/etc/passwd &> /dev/null; then
echo "admin:x:0:0:root:/root:/bin/sh" >> ${TARGET}/etc/passwd
fi