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:
parent
8228dbbbde
commit
75e5ee2fdd
4 changed files with 406 additions and 142 deletions
10
build.sh
10
build.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue