-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stephan Wendel <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |