Could someone please explain if and when is shebang needed in a hotplug script?
There is no mention in the documentation, so one could conclude that it is not needed at all.
In a 19.07 installation, I see that 00-netstate
script does not include shebang while 20-firewall
script does, the main difference I can see being that the first uses only uci
commands.
Is this for script compatibility with other Linux distributions?
I tested a script with ifup
and ip route
commands, and it works without shebang.
1 Like
In case of hotplug, shebang is redundant and will be ignored as the scripts are sourced:
2 Likes
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.