mirror of
https://github.com/openwrt-xiaomi/builder.git
synced 2026-02-02 15:37:47 +05:00
xmake: Add patch for BatMan Adv proto
This commit is contained in:
@@ -123,6 +123,7 @@ CONFIG_PACKAGE_relayd=y
|
||||
CONFIG_PACKAGE_luci-proto-relay=y
|
||||
|
||||
### Luci proto
|
||||
CONFIG_PACKAGE_luci-proto-gre=y
|
||||
CONFIG_PACKAGE_luci-proto-3g=y
|
||||
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||
|
||||
|
||||
10
xmake.sh
10
xmake.sh
@@ -119,10 +119,20 @@ function build_target {
|
||||
fi
|
||||
fi
|
||||
|
||||
BATADV_DIR=$XDIR/feeds/luci/protocols/luci-proto-batman-adv/htdocs/luci-static/resources/protocol
|
||||
if [ -d $BATADV_DIR ]; then
|
||||
if [ ! -f $BATADV_DIR/batadv_vlan.js ]; then
|
||||
BATADV_VLAN_URL="https://github.com/luminem/luci/raw/4e0612a45e4be8c58de2bbd21c3bffbcf5252be4/protocols/luci-proto-batman-adv/htdocs/luci-static/resources/protocol/batadv_vlan.js"
|
||||
curl -sSL "$BATADV_VLAN_URL" -o "$BATADV_DIR/batadv_vlan.js"
|
||||
echo ">>> batman_adv patched !!!"
|
||||
fi
|
||||
fi
|
||||
|
||||
RAB_LUCI_MK=$XDIR/package/feeds/_ruantiblock/luci-app-ruantiblock/Makefile
|
||||
if [ -f $RAB_LUCI_MK ]; then
|
||||
if ! grep "PKG_PROVIDES" $RAB_LUCI_MK >/dev/null ; then
|
||||
sed -i 's/LUCI_PKGARCH:=all/LUCI_PKGARCH:=all\nPKG_PROVIDES:=luci-app-ruantiblock/g' $RAB_LUCI_MK
|
||||
echo ">>> ruantiblock patched !!!"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user