1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Added swconfig-wrapper to take control about DSA switch configuration

This commit is contained in:
Olli 2021-03-10 00:53:42 +01:00
parent 8228dbbbde
commit 75e5ee2fdd
4 changed files with 406 additions and 142 deletions

View file

@ -255,8 +255,11 @@ if [ "$OMR_TARGET" = "bpi-r1" ]; then
done
echo "done"
# Mark as DSA
touch "$OMR_TARGET/source/target/linux/sunxi/base-files/etc/.lamobo-r1.dsa"
# Create DSA port map file (will be filled on first boot, by uci-defaults and tells the system, that it is in DSA mode)
touch "$OMR_TARGET/source/target/linux/sunxi/base-files/etc/dsa.map"
# Remove the b53 hack in preinit
rm -f "$OMR_TARGET/source/target/linux/sunxi/base-files/lib/preinit/03_b53_hack.sh"
else
# Remove ip-bridge
echo -n "Removing ip-bridge support from openwrt config..."
@ -272,9 +275,6 @@ if [ "$OMR_TARGET" = "bpi-r1" ]; then
sed -i "s/CONFIG_${i}/# CONFIG_${i} is not set/" "$OMR_TARGET/source/target/linux/sunxi/cortexa7/config-$OMR_KERNEL"
done
echo "done"
# Mark as PHY
touch "$OMR_TARGET/source/target/linux/sunxi/base-files/etc/.lamobo-r1.phy"
fi
# Add led support