Made username, password, and hostname generic

This commit is contained in:
Charles Cross
2016-05-05 15:11:03 -07:00
parent 21cf9e8e80
commit dae7639adf
5 changed files with 21 additions and 22 deletions
+3 -3
View File
@@ -6,10 +6,10 @@ install -m 744 files/policy-rc.d ${ROOTFS_DIR}/usr/sbin/policy-rc.d
install -v -m 644 files/fstab ${ROOTFS_DIR}/etc/fstab
on_chroot sh -e - <<EOF
if ! id -u pi >/dev/null 2>&1; then
adduser --disabled-password --gecos "" pi
if ! id -u ${USER_NAME} >/dev/null 2>&1; then
adduser --disabled-password --gecos "" ${USER_NAME}
fi
echo "pi:raspberry" | chpasswd
echo "${USER_NAME}:${PASS_WORD}" | chpasswd
echo "root:root" | chpasswd
EOF