whi-tw / macvlan-unifios

macvlan kernel module for UniFi OS devices
GNU General Public License v3.0
20 stars 5 forks source link

Update setup_macvlan.sh.j2 #32

Open ghostinushanka opened 1 year ago

ghostinushanka commented 1 year ago

/data/on_boot.d might not exist when this script is ran (e.g. on an unmodded Ubiquiti device).

No having this directory present will result in following error (output redirect creates a target file, but not the directory tree for the file)

-bash: /data/on_boot.d/01-load-macvlan-module.sh: No such file or directory

Make sure script handles this case correctly and creates the dir before heredoc file creation.