Skip to content
Snippets Groups Projects
Commit 0df300e2 authored by Benjamin Larsson's avatar Benjamin Larsson
Browse files

panther: fix wan sfp/copper switching

parent c601d46b
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,9 @@ config board 'board' ...@@ -6,7 +6,9 @@ config board 'board'
option hasEthWan '1' option hasEthWan '1'
option hasVoice '0' option hasVoice '0'
option hasDect '0' option hasDect '0'
option hasUsb '0' option hasUsb '1'
option VoicePorts '0'
option VoiceLeds '0'
option hasWifi '0' option hasWifi '0'
option hasSfp '1' option hasSfp '1'
# Voice # Voice
......
...@@ -108,9 +108,9 @@ has_power() { ...@@ -108,9 +108,9 @@ has_power() {
wan_sfp_mode () { wan_sfp_mode () {
# check if there is a sfp-rom present and return 0 if so # check if there is a sfp-rom present and return 0 if so
# returns 2 if there is an error # returns 2 if there is an error
# i2cget -y 0 0x50 0x0 >/dev/null 2>&1 i2cget -y 0 0x50 0x0 >/dev/null 2>&1
# return $? return $?
return 0 # return 0
} }
disable_ext_led () { disable_ext_led () {
......
...@@ -32,7 +32,10 @@ get_link() { ...@@ -32,7 +32,10 @@ get_link() {
ubus call led.wan_speed set {\"state\":\"OK\"} ubus call led.wan_speed set {\"state\":\"OK\"}
else else
ubus call led.wan_speed set {\"state\":\"NOTICE\"} ubus call led.wan_speed set {\"state\":\"NOTICE\"}
fi
fi fi
else
ubus call led.wan_speed set {\"state\":\"OFF\"}
fi fi
sleep 5 sleep 5
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment