Update readme to support mac osx
[remote-debug.git] / board / add-user.sh
1 #!/bin/bash
2
3 # Add a new user named debug, with password suanzikeji for remote debug
4 # the suanzi-support daemon will be running as this user
5 # run : sudo ./add-user.sh
6
7 USER="debug"
8 PASS="suanzikeji"
9
10 echo "Create $USER user"
11 useradd -m "${USER}" || exit 1
12
13 echo "set the password of $USER"
14 echo -e "${PASS}\n${PASS}" | passwd "$USER"  || exit 1
15
16 echo "Done"
17