diff options
Diffstat (limited to 'target/linux/bcm53xx/base-files')
-rw-r--r-- | target/linux/bcm53xx/base-files/etc/board.d/02_network | 6 | ||||
-rwxr-xr-x | target/linux/bcm53xx/base-files/etc/init.d/clear_partialboot | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/base-files/etc/board.d/02_network b/target/linux/bcm53xx/base-files/etc/board.d/02_network index e37ae20340..d26b2c69f2 100644 --- a/target/linux/bcm53xx/base-files/etc/board.d/02_network +++ b/target/linux/bcm53xx/base-files/etc/board.d/02_network @@ -30,6 +30,10 @@ bcm53xx_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5t@eth0" ;; + linksys,panamera) + ucidef_add_switch "switch1" \ + "0:lan" "1:lan:7" "2:lan:4" "3:lan:8" "4:wan" "5t@eth0" + ;; luxul,abr-4500-v1|\ luxul,xbr-4500-v1) ucidef_add_switch "switch0" \ @@ -83,6 +87,7 @@ bcm53xx_setup_macs() case "$board" in dlink,dir-885l | \ + linksys,panamera | \ netgear,r7900 | \ netgear,r8000 | \ netgear,r8500) @@ -104,6 +109,7 @@ bcm53xx_setup_macs() offset=1 ;; dlink,dir-885l | \ + linksys,panamera | \ netgear,r7900 | \ netgear,r8000 | \ netgear,r8500) diff --git a/target/linux/bcm53xx/base-files/etc/init.d/clear_partialboot b/target/linux/bcm53xx/base-files/etc/init.d/clear_partialboot new file mode 100755 index 0000000000..b3eddf4af0 --- /dev/null +++ b/target/linux/bcm53xx/base-files/etc/init.d/clear_partialboot @@ -0,0 +1,13 @@ +#!/bin/sh /etc/rc.common + +START=97 +boot() { + . /lib/functions.sh + + case $(board_name) in + linksys,panamera) + # clear partialboots + nvram set partialboots=0 && nvram commit + ;; + esac +} |