diff options
Diffstat (limited to 'target/linux/mvebu/base-files/etc/uci-defaults')
-rw-r--r-- | target/linux/mvebu/base-files/etc/uci-defaults/03_wireless | 56 | ||||
-rw-r--r-- | target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan | 23 |
2 files changed, 0 insertions, 79 deletions
diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless b/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless deleted file mode 100644 index 3c345ff148..0000000000 --- a/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2015 OpenWrt.org -# - -[ ! -e /etc/config/wireless ] && exit 0 - -. /lib/functions.sh -. /lib/functions/system.sh - -board=$(board_name) - -case "$board" in -linksys,caiman|linksys,cobra|linksys,mamba|linksys,shelby|linksys,venom) - SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p') - WIFIMAC2G=$(macaddr_add $(cat /sys/class/net/eth0/address) +1) - WIFIMAC5G=$(macaddr_add $WIFIMAC2G +1) - case "$SKU" in - AP) - REGD=CN - ;; - AU) - REGD=AU - ;; - CA) - REGD=CA - ;; - EU) - REGD=DE - ;; - US) - REGD=US - ;; - esac - - case "$board" in - linksys,mamba) - WIFIMAC0=$WIFIMAC2G - WIFIMAC1=$WIFIMAC5G - ;; - *) - WIFIMAC0=$WIFIMAC5G - WIFIMAC1=$WIFIMAC2G - ;; - esac - - uci get wireless.radio0.country || uci set wireless.radio0.country=$REGD - uci get wireless.@wifi-iface[0].macaddr || uci set wireless.@wifi-iface[0].macaddr=$WIFIMAC0 - uci get wireless.radio1.country || uci set wireless.radio1.country=$REGD - uci get wireless.@wifi-iface[1].macaddr || uci set wireless.@wifi-iface[1].macaddr=$WIFIMAC1 - ;; -esac - -uci commit wireless - -exit 0 diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan b/target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan deleted file mode 100644 index ec25aedad6..0000000000 --- a/target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2017 LEDE-Project.org -# - -. /lib/functions.sh - -board=$(board_name) - -case "$board" in -linksys,mamba) - # Set fan script execution in crontab - grep -s -q fan_ctrl.sh /etc/crontabs/root && exit 0 - - echo "# mamba fan script runs every 5 minutes" >> /etc/crontabs/root - echo "*/5 * * * * /sbin/fan_ctrl.sh" >> /etc/crontabs/root - - # Execute one time after initial flash (instead of waiting 5 min for cron) - /sbin/fan_ctrl.sh - ;; -esac - -exit 0 |