diff --git a/on-boot-script/examples/udm-files/on_boot.d/10-wpa_supplicant.sh b/on-boot-script/examples/udm-files/on_boot.d/10-wpa_supplicant.sh new file mode 100644 index 0000000..29a75ca --- /dev/null +++ b/on-boot-script/examples/udm-files/on_boot.d/10-wpa_supplicant.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +## create files like this with different numbers for execution order +## ala /etc/profile.d + +## example command to run, please replace with your own. +podman start wpa_supplicant-udmpro diff --git a/on-boot-script/examples/udm-files/on_boot.sh b/on-boot-script/examples/udm-files/on_boot.sh index 2287082..f41f6f4 100644 --- a/on-boot-script/examples/udm-files/on_boot.sh +++ b/on-boot-script/examples/udm-files/on_boot.sh @@ -1,5 +1,9 @@ #!/bin/sh -## example command to run, please replace with your own. -podman start wpa_supplicant-udmpro - +if [ -d /mnt/data/on_boot.d ]; then + for i in /mnt/data/on_boot.d/*.sh; do + if [ -r $i ]; then + . $i + fi + done +fi