mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Update example on_boot.sh for directory
This commit is contained in:
parent
f6f527494f
commit
cfad45b23e
@ -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
|
@ -1,5 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
## example command to run, please replace with your own.
|
if [ -d /mnt/data/on_boot.d ]; then
|
||||||
podman start wpa_supplicant-udmpro
|
for i in /mnt/data/on_boot.d/*.sh; do
|
||||||
|
if [ -r $i ]; then
|
||||||
|
. $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user