|
575 | 575 | G_EXEC sed --follow-symlinks -i '/# Start DietPi-Software/a\sed -i '\''/# Custom 1st run script/a\\for i in "${aSTART_SERVICES[@]}"; do G_EXEC_NOHALT=1 G_EXEC systemctl start "$i"; done'\'' /boot/dietpi/dietpi-software' rootfs/boot/dietpi/dietpi-login |
576 | 576 | delay=10 |
577 | 577 | for i in "${aDELAY[@]}"; do (( $i > $delay )) && delay=$i; done |
578 | | -G_EXEC eval "echo -e '#!/bin/dash\nexit_code=0; /boot/dietpi/dietpi-services start || exit_code=1; echo Waiting $delay seconds for service starts; sleep $delay' > rootfs/boot/Automation_Custom_Script.sh" |
| 578 | +G_EXEC eval "echo -e '#!/bin/bash\nexit_code=0; /boot/dietpi/dietpi-services start || exit_code=1; echo Waiting $delay seconds for service starts; sleep $delay' > rootfs/boot/Automation_Custom_Script.sh" |
579 | 579 | # - Loop through software IDs to test |
580 | 580 | printf '%s\n' "${!aSERVICES[@]}" "${!aTCP[@]}" "${!aUDP[@]}" "${!aCOMMANDS[@]}" | sort -u | while read -r i |
581 | 581 | do |
@@ -619,6 +619,33 @@ G_EXEC eval 'echo '\''[ $exit_code = 0 ] && > /success || { journalctl -n 50; ss |
619 | 619 | # Shutdown as well on failures before the custom script is executed |
620 | 620 | G_EXEC sed --follow-symlinks -i 's|Prompt_on_Failure$|{ journalctl -n 50; ss -tulpn; df -h; free -h; systemctl start poweroff.target; exit 1; }|' rootfs/boot/dietpi/dietpi-login |
621 | 621 |
|
| 622 | +# DEBUG |
| 623 | +#G_EXEC sed --follow-symlinks -i '/#G_INIT$/i\G_AGUP' rootfs/boot/dietpi/dietpi-login |
| 624 | +#G_EXEC sed --follow-symlinks -i '\|/boot/dietpi/dietpi-software|i\G_THREAD_START curl -vsSfL https://dietpi.com/downloads/binaries/rpi/dxx-rebirth.7z -o gogs_armv6l.7z' rootfs/boot/dietpi/dietpi-login |
| 625 | +#G_EXEC sed --follow-symlinks -i '\|/boot/dietpi/dietpi-software|i\G_THREAD_START curl -vsSfL --http1.1 https://dietpi.com/downloads/binaries/rpi/dxx-rebirth.7z -o gogs_armv6l.7z' rootfs/boot/dietpi/dietpi-login |
| 626 | +#G_EXEC sed --follow-symlinks -i '\|/boot/dietpi/dietpi-software|i\G_THREAD_START curl -vsSfL --http3-only https://dietpi.com/downloads/binaries/rpi/dxx-rebirth.7z -o gogs_armv6l.7z' rootfs/boot/dietpi/dietpi-login |
| 627 | +#G_EXEC sed --follow-symlinks -i '\|/boot/dietpi/dietpi-software|i\G_AGI 7zip' rootfs/boot/dietpi/dietpi-login |
| 628 | +#G_EXEC sed --follow-symlinks -i '\|/boot/dietpi/dietpi-software|i\G_THREAD_WAIT' rootfs/boot/dietpi/dietpi-login |
| 629 | +#G_EXEC sed --follow-symlinks -i '\|/boot/dietpi/dietpi-software|i\poweroff' rootfs/boot/dietpi/dietpi-login |
| 630 | + |
| 631 | +#G_EXEC sed --follow-symlinks -i '\|poweroff.target|i\source /boot/dietpi/func/dietpi-globals' rootfs/boot/Automation_Custom_Script.sh |
| 632 | +#G_EXEC sed --follow-symlinks -i '\|poweroff.target|i\G_THREAD_START curl -vsSfL https://download.roonlabs.net/builds/RoonBridge_linuxx64.tar.bz2 -o gogs_armv6l.7z' rootfs/boot/Automation_Custom_Script.sh |
| 633 | +#G_EXEC sed --follow-symlinks -i '\|poweroff.target|i\G_THREAD_START curl -vsSfL --http1.1 https://download.roonlabs.net/builds/RoonBridge_linuxx64.tar.bz2 -o gogs_armv6l.7z' rootfs/boot/Automation_Custom_Script.sh |
| 634 | +#G_EXEC sed --follow-symlinks -i '\|poweroff.target|i\G_THREAD_START curl -vsSfL --http3-only https://download.roonlabs.net/builds/RoonBridge_linuxx64.tar.bz2 -o gogs_armv6l.7z' rootfs/boot/Automation_Custom_Script.sh |
| 635 | +#G_EXEC sed --follow-symlinks -i '\|poweroff.target|i\G_AGI 7zip' rootfs/boot/Automation_Custom_Script.sh |
| 636 | +#G_EXEC sed --follow-symlinks -i '\|poweroff.target|i\G_THREAD_WAIT' rootfs/boot/Automation_Custom_Script.sh |
| 637 | + |
| 638 | +#G_EXEC sed --follow-symlinks -i '/# Start DietPi-Software/i\sed -i '\''/# Custom 1st run script/i\\G_THREAD_START curl -sSfL https://dietpi.com/downloads/binaries/trixie/gogs_armv7l.7z -o gogs_armv6l.7z'\'' /boot/dietpi/dietpi-software' rootfs/boot/dietpi/dietpi-login |
| 639 | +#G_EXEC sed --follow-symlinks -i '/# Start DietPi-Software/i\sed -i '\''/# Custom 1st run script/i\\G_THREAD_START curl -vsSfL --http1.1 https://dietpi.com/downloads/binaries/trixie/gogs_armv7l.7z -o gogs_armv6l.7z'\'' /boot/dietpi/dietpi-software' rootfs/boot/dietpi/dietpi-login |
| 640 | +#G_EXEC sed --follow-symlinks -i '/# Start DietPi-Software/i\sed -i '\''/# Custom 1st run script/i\\G_THREAD_START curl -vsSfL --http3-only https://dietpi.com/downloads/binaries/trixie/gogs_armv7l.7z -o gogs_armv6l.7z'\'' /boot/dietpi/dietpi-software' rootfs/boot/dietpi/dietpi-login |
| 641 | +#G_EXEC sed --follow-symlinks -i '/# Start DietPi-Software/i\sed -i '\''/# Custom 1st run script/i\\G_AGI 7zip'\'' /boot/dietpi/dietpi-software' rootfs/boot/dietpi/dietpi-login |
| 642 | +#G_EXEC sed --follow-symlinks -i '/# Start DietPi-Software/i\sed -i '\''/# Custom 1st run script/i\\G_THREAD_WAIT'\'' /boot/dietpi/dietpi-software' rootfs/boot/dietpi/dietpi-login |
| 643 | + |
| 644 | +#G_EXEC sed --follow-symlinks -i '/# Start DietPi-Software/i\sed -i '\''/# Custom 1st run script/i\\Download_Install https://dietpi.com/downloads/binaries/rpi/dxx-rebirth.7z'\'' /boot/dietpi/dietpi-software' rootfs/boot/dietpi/dietpi-login |
| 645 | + |
| 646 | +apparmor_status |
| 647 | +G_EXEC systemctl mask --now apparmor |
| 648 | + |
622 | 649 | ########################################## |
623 | 650 | # Boot container |
624 | 651 | ########################################## |
|
0 commit comments