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
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
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
fi
i=$((i+1));
done
- uci commit
+ uci -c "$(dirname $(realpath /etc/config/babeld))" commit babeld
/etc/init.d/babeld reload
fi
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
fi
i=$((i+1));
done
- uci commit
+ uci -c "$(dirname $(realpath /etc/config/olsrd))" commit olsrd
/etc/init.d/olsrd reload
fi