Files
orangepi-5-plus-kernel/external/packages/raspi/export-image/01-user-rename/01-run.sh
2026-02-07 20:22:48 +08:00

10 lines
212 B
Bash
Executable File

#!/bin/bash -e
if [[ "${DISABLE_FIRST_BOOT_USER_RENAME}" == "0" ]]; then
on_chroot <<- EOF
SUDO_USER="${FIRST_USER_NAME}" rename-user -f -s
EOF
else
rm -f "${ROOTFS_DIR}/etc/xdg/autostart/piwiz.desktop"
fi