Open loss-and-quick opened 1 month ago
My /var/lib/dietpi/dietpi-autostart/custom.sh
:
#!/bin/bash
# DietPi-AutoStart custom script
# Location: /var/lib/dietpi/dietpi-autostart/custom.sh
(poetry run -C /home/dietpi/earing python3 -u earing/earing/main.py | while IFS= read -r line; do echo "earning: $line"; done | logdy-core forward 8123) &
touch /home/dietpi/test
exit 0
Many thanks for your report.
What do you see on the console after auto-login? There should be this line:
[ INFO ] Starting DietPi-AutoStart custom script...
followed by the output of the custom.sh
script.
@MichaIng I'm sorry, but I switched to Alpine. When the problem arose, I searched all the files in the DietPi source code at /var/lib/dietpi/dietpi-autostart/custom.sh and realized that option 17 is not implemented at all. Specifically, when selecting option 17, a console-getty service is created, along with another similar one with comparable content, and nothing else is created. Additionally, there is nothing in the DietPi logs related to autostart.
I suspect that option 17 is fundamentally unimplemented.
It is implemented here, like all autologin + foreground options 😉: https://github.com/MichaIng/DietPi/blob/master/dietpi/dietpi-login#L85
It is implemented here, like all autologin + foreground options 😉: https://github.com/MichaIng/DietPi/blob/master/dietpi/dietpi-login#L85
But I tried to search in system using grep, and didn't find anything like that
I figured only that agetty creates shell...
That should be in /boot/dietpi/dietpi-login
, which is loaded from /etc/bashrc.d/dietpi.bash
, which is loaded from /etc/bash.bashrc
, which is loaded on every interactive bash
session, which is loaded (by default) on agetty
logins.
Creating a bug report/issue
Required Information
G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=7 G_DIETPI_VERSION_RC=1 G_GITBRANCH='master' G_GITOWNER='MichaIng'
bookworm 1
Linux 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux
RPi Zero W (armv6l)
Additional Information (if applicable)
737d8199-70ad-42e2-b71c-241ec47b48ef
Steps to reproduce
/var/lib/dietpi/dietpi-autostart/custom.sh
Expected behaviour
Actual behaviour
Extra details