Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Wendel <[email protected]>
  • Loading branch information
KwadFan committed Oct 10, 2023
1 parent ece29dd commit da7339d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/modules/orangepi/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,22 @@ fi
### the location of '/lib/systemd/system/[serial-][email protected]'
### instead the appropriate location in etc, we have to fix that.
if [[ "${ORANGEPI_DISABLE_GETTY_AUTOLOGIN}" = "1" ]]; then
echo_green "Disable 'getty' autologin ..."

### Substep 1: copy '/lib/systemd/system/[serial-][email protected]'
for dir in $(get_gettyconf_dirs /usr/lib/systemd/system); do
cp -r "${dir}" /etc/systemd/system/
cp -R "${dir}" /etc/systemd/system
done
### End Substep 1

echo_green "DEBUG: ls /etc/systemd/system"
ls /etc/systemd/system

### Substep 2: Modify 'override.conf', delete autologin
for conf in $(get_gettyconf_dirs /etc/systemd/system); do
sed -i 's/--autologin orangepi//' "${conf}/override.conf"
sed -i 's/--autologin orangepi //' "${conf}/override.conf"
done
### END Substep 2
echo_green "Disable 'getty' autologin ... DONE!"
fi
## END Step 8

0 comments on commit da7339d

Please sign in to comment.