From 0434407428b25ae5309525f060964218034b86c5 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 19 Dec 2022 08:13:08 +0100 Subject: 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 --- net/mwan3/Makefile | 4 ++-- net/mwan3/files/etc/hotplug.d/iface/16-mwan3-user | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile index 878c4b993..a72289fc6 100644 --- a/net/mwan3/Makefile +++ b/net/mwan3/Makefile @@ -8,8 +8,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mwan3 -PKG_VERSION:=2.11.3 -PKG_RELEASE:=3 +PKG_VERSION:=2.11.4 +PKG_RELEASE:=1 PKG_MAINTAINER:=Florian Eckert , \ Aaron Goodman PKG_LICENSE:=GPL-2.0 diff --git a/net/mwan3/files/etc/hotplug.d/iface/16-mwan3-user b/net/mwan3/files/etc/hotplug.d/iface/16-mwan3-user index a9f42168b..0960a2628 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/16-mwan3-user +++ b/net/mwan3/files/etc/hotplug.d/iface/16-mwan3-user @@ -19,6 +19,7 @@ exit 0 } + [ -x /etc/mwan3.user ] || chmod 755 /etc/mwan3.user env -i ACTION="$ACTION" INTERFACE="$INTERFACE" DEVICE="$DEVICE" /etc/mwan3.user } -- cgit v1.2.3