diff --git a/board/common/postscript.sh b/board/common/postscript.sh index a10cee1305..10c18e9194 100755 --- a/board/common/postscript.sh +++ b/board/common/postscript.sh @@ -48,5 +48,7 @@ if [ -r ${BOARD_DIR}/os.conf ]; then fi # 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