So far, board.d files were having execute bit set and contained a shebang. However, they are just sourced in board_detect, with an apparantly unnecessary check for execute permission beforehand. Replace this check by one for existance and make the board.d files "normal" files, as would be expected in /etc anyway. Note: This removes an apparantly unused '#!/bin/sh /etc/rc.common' in target/linux/bcm47xx/base-files/etc/board.d/01_network Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
25 lines
581 B
Text
25 lines
581 B
Text
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
cellc,rtl30vw)
|
|
ucidef_add_gpio_switch "w_disable" "W_DISABLE mPCIE pin" "398" "1"
|
|
ucidef_add_gpio_switch "pmd_resin_n" "PMD_RESIN_N pin" "399" "1"
|
|
ucidef_add_gpio_switch "mcpie_vcc" "LTE power" "400" "0"
|
|
ucidef_add_gpio_switch "usb_vcc" "USB power" "401" "0"
|
|
;;
|
|
cilab,meshpoint-one)
|
|
ucidef_add_gpio_switch "poe_passtrough" "POE passtrough enable" "413" "1"
|
|
;;
|
|
compex,wpj428)
|
|
ucidef_add_gpio_switch "sim_card_select" "SIM card select" "3" "0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|