Dietpi-autostart does not run commands

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=17
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
    G_LIVE_PATCH_STATUS[0]=‘not applicable’
  • Distro version | bookwom
  • Kernel version | Linux DietPi 6.12.43+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1~bpo12+1 (2025-09-06) x86_64 GNU/Linux
  • Architecture | amd64
  • SBC model | ASRock N100M
  • Power supply used | PicoPSU 180 watt
  • SD card used | none

Additional Information (if applicable)

Steps to reproduce

Have 4 commands to run in dietpi-autostart/custom.sh

  1. commands clearly do not run because if I run them in SSH, I can see they work
  2. Even running sh custom.sh works, but not with dietpi-autostart after boot.

Expected behaviour

four commands will run:
python3 AutoASPM/pkgs/autoaspm.py
powertop --auto-tune
setpci -s 01:00.0 0x80.B=0x42
setpci -s 02:00.0 0x80.B=0x42

Actual behaviour

no evidence these c…

Extra details

you would need to use the full path for the command, not just the command itself.

Here is my custum.sh which runs just fine with

sh /var/lib/dietpi/dietpi-autostart/custom.sh

           #!/bin/bash
# DietPi-AutoStart custom script
# Location: /var/lib/dietpi/dietpi-autostart/custom.sh


python3 AutoASPM/pkgs/autoaspm.py

powertop --auto-tune


setpci -s 01:00.0 0x80.B=0x42

setpci -s 02:00.0 0x80.B=0x42

exit 0

my answer ist still the same

1 Like