Automate the Post-installation

Hi,

I’m wondering if it is possible to customzie the post installation when we use the automated installation and to by example have a script able
to install some additional packages "e.g. apt-get net-tools) ?

Cheers

Charles

Hi,

just use the AUTO_SETUP_CUSTOM_SCRIPT_EXEC section on dietpi.txt

# Custom Script (post-networking and post-DietPi install)
# - Allows you to automatically execute a custom script at the end of DietPi install.
# - Option 0 = Copy your script to /boot/Automation_Custom_Script.sh and it will be executed automatically.
# - Option 1 = Host your script online, then use e.g. AUTO_SETUP_CUSTOM_SCRIPT_EXEC=https://myweb.com/myscript.sh and it will be downloaded and executed automatically.
# - Executed script log: /var/tmp/dietpi/logs/dietpi-automation_custom_script.log
AUTO_SETUP_CUSTOM_SCRIPT_EXEC=0