mwan3: make mwan3.user executable
authorFlorian Eckert <redacted>
Mon, 19 Dec 2022 07:13:08 +0000 (08:13 +0100)
committerFlorian Eckert <redacted>
Mon, 19 Dec 2022 07:34:54 +0000 (08:34 +0100)
commit0434407428b25ae5309525f060964218034b86c5
tree0db94a899ab8e816f0ba542afd15f084e7fc46b4
parent3fd37a234c61146f6f6e921f7e3c7adfb19f4623
mwan3: make mwan3.user executable

This is a fix for the the following change:
https://github.com/openwrt/packages/commit/3d824ea288d907a31729c3629e884ea122c30da0

Before the change, it was only possible to execute a shell script. To
remove this restriction, a binary or other script language can now also
be used for 'mwan3.user'. Unfortunately, the old shell script was not
executable for older mwan3 version. During a sysupgrade with config transfer,
this 'mwan3.user' script could not be executed for newer mwan3 versions.
To fix this, the calling script checks whether the 'mwan3.user' is executable,
and if not, this executable bit is now set.

Signed-off-by: Florian Eckert <redacted>
net/mwan3/Makefile
net/mwan3/files/etc/hotplug.d/iface/16-mwan3-user
git clone https://git.99rst.org/PROJECT