Update example on_boot.sh for directory

This commit is contained in:
exodious 2020-06-21 21:30:34 -04:00
parent 1f980e5355
commit 0cfb15cbc3
2 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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