| # |
| # configuration for diagnostic scripts |
| # |
| |
| # defaults, if not overridden |
| iperf_server=192.168.1.100 |
| |
| # these can be set on the boot line or the environment |
| diag_essid="${diag_essid:-$(kernopt diag_essid)}" |
| diag_iperf_server="${diag_iperf_server:-$(kernopt diag_iperf_server)}" |
| |
| # |
| # general configs here |
| # |
| |
| dram_memory=10M # how much memory to test |
| |
| wifi_essid="${diag_essid:-factory}" |
| |
| wired_lan=lan0 |
| wired_wan=wan0 |
| |
| # iperf_server_* can be overriden by environment |
| iperf_server_lan0="${iperf_server_lan0:-${diag_iperf_server:-$iperf_server}}" |
| iperf_min_lan0=10 # MBytes/sec |
| |
| iperf_server_wan0="${iperf_server_wan0:-${diag_iperf_server:-$iperf_server}}" |
| iperf_min_wan0=10 # MBytes/sec |
| |
| iperf_server_weth0="${iperf_server_weth0:-${diag_iperf_server:-$iperf_server}}" |
| iperf_min_weth0=10 # MBytes/sec |
| |
| iperf_server_weth1="${iperf_server_weth1:-${diag_iperf_server:-$iperf_server}}" |
| iperf_min_weth1=10 # MBytes/sec |
| |
| disk_badblock_count=3000000 # number of blocks to check (large is slow) |
| disk_min_mibps=90 # 90MiB/s read is nice, 120 is great |
| |
| usb_min_bps=36000000 # 36 MB/s seen on usb3.0 drive |
| usb_min_bps=1000000 # lower until we get a good value |
| |
| fan_temp1_min=29000 # 29-45 degrees celcius, just a guideline for now |
| fan_temp1_max=45000 |
| fan_temp2_min=29000 |
| fan_temp2_max=45000 |
| |
| fan_max_rpm=5000 |
| |
| has_wifi=1 |
| |
| # |
| # platform specific configs follow |
| # |
| PLATFORM_NAME=$(hnvram -qr PLATFORM_NAME || true) |
| case "$PLATFORM_NAME" in |
| GFHD100) |
| ;; |
| GFMS100) |
| ;; |
| GFRG200) |
| ;; |
| GFRG210) |
| ;; |
| GFRG250) |
| ;; |
| GFSC100) |
| has_wifi=0 |
| ;; |
| *) |
| echo "$0: WARNING: unknown platform '$PLATFORM_NAME', using defaults" 1>&2 |
| ;; |
| esac |