-
-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Auto-Start Option 17: Custom Script Not Executed #7241
Comments
My #!/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:
followed by the output of the |
@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 |
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 |
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
The text was updated successfully, but these errors were encountered: