1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-12 19:31:52 +00:00

Enabled patch for DSA mode

This commit is contained in:
Olli 2021-03-06 19:08:14 +01:00
parent 785b03e1ef
commit 1a5f7fd2e8

View file

@ -226,13 +226,6 @@ if [ "$OMR_TARGET" = "bpi-r1" ]; then
exit 1 exit 1
fi fi
if [ "$OMR_KERNEL" = "5.4" ]; then
# Remove the 310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th patch
echo -n "Removing unwanted patches from kernel $OMR_KERNEL..."
rm -f "$OMR_TARGET/source/target/linux/sunxi/patches-$OMR_KERNEL/310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch" >/dev/null 2>&1
echo "done"
fi
if [ "$OMR_FORCE_DSA" = "1" ]; then if [ "$OMR_FORCE_DSA" = "1" ]; then
# Remove support for swconfig # Remove support for swconfig
echo -n "Removing swconfig support from openwrt config..." echo -n "Removing swconfig support from openwrt config..."
@ -260,6 +253,11 @@ if [ "$OMR_TARGET" = "bpi-r1" ]; then
# Mark as DSA # Mark as DSA
touch "$OMR_TARGET/source/target/linux/sunxi/base-files/etc/.lamobo-r1.dsa" touch "$OMR_TARGET/source/target/linux/sunxi/base-files/etc/.lamobo-r1.dsa"
else else
# Remove the 310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th patch
echo -n "Removing unwanted patches from kernel $OMR_KERNEL..."
rm -f "$OMR_TARGET/source/target/linux/sunxi/patches-$OMR_KERNEL/310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch" >/dev/null 2>&1
echo "done"
# Remove ip-bridge # Remove ip-bridge
echo -n "Removing ip-bridge support from openwrt config..." echo -n "Removing ip-bridge support from openwrt config..."
for i in PACKAGE_ip-bridge; do for i in PACKAGE_ip-bridge; do