Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Update setup_macvlan.sh.j2 #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ghostinushanka
Copy link

/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.

`/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)
```shell
-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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant