diff --git a/net/wg-installer/Makefile b/net/wg-installer/Makefile index 00701701a..55e654d65 100644 --- a/net/wg-installer/Makefile +++ b/net/wg-installer/Makefile @@ -54,7 +54,7 @@ endef define Package/wg-installer-server-hotplug-babeld $(call Package/wg-installer-server) - DEPENDS:=wg-installer-server + DEPENDS:=wg-installer-server +coreutils-dirname +coreutils-realpath endef define Package/wg-installer-server-hotplug-babeld/install @@ -64,7 +64,7 @@ endef define Package/wg-installer-server-hotplug-olsrd $(call Package/wg-installer-server) - DEPENDS:=wg-installer-server + DEPENDS:=wg-installer-server +coreutils-dirname +coreutils-realpath endef define Package/wg-installer-server-hotplug-olsrd/install diff --git a/net/wg-installer/wg-server/hotplug.d/99-mesh-babeld b/net/wg-installer/wg-server/hotplug.d/99-mesh-babeld index 068b199a1..4da7caa91 100644 --- a/net/wg-installer/wg-server/hotplug.d/99-mesh-babeld +++ b/net/wg-installer/wg-server/hotplug.d/99-mesh-babeld @@ -14,7 +14,7 @@ fi if [ "${ACTION}" == "add" ]; then uci add babeld interface uci set babeld.@interface[-1].ifname="${INTERFACE}" - uci commit + uci -c "$(dirname $(realpath /etc/config/babeld))" commit babeld /etc/init.d/babeld reload fi @@ -26,6 +26,6 @@ if [ "${ACTION}" == "remove" ]; then fi i=$((i+1)); done - uci commit + uci -c "$(dirname $(realpath /etc/config/babeld))" commit babeld /etc/init.d/babeld reload fi diff --git a/net/wg-installer/wg-server/hotplug.d/99-mesh-olsrd b/net/wg-installer/wg-server/hotplug.d/99-mesh-olsrd index 648ef6989..1e4be3697 100644 --- a/net/wg-installer/wg-server/hotplug.d/99-mesh-olsrd +++ b/net/wg-installer/wg-server/hotplug.d/99-mesh-olsrd @@ -16,7 +16,7 @@ if [ "${ACTION}" == "add" ]; then uci set olsrd.@Interface[-1].ignore=0 uci set olsrd.@Interface[-1].interface="${INTERFACE}" uci set olsrd.@Interface[-1].Mode="ether" - uci commit + uci -c "$(dirname $(realpath /etc/config/olsrd))" commit olsrd /etc/init.d/olsrd reload fi @@ -28,6 +28,6 @@ if [ "${ACTION}" == "remove" ]; then fi i=$((i+1)); done - uci commit + uci -c "$(dirname $(realpath /etc/config/olsrd))" commit olsrd /etc/init.d/olsrd reload fi