mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 16:58:22 +00:00
lantiq: add the current profile to the stats output
Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48045
This commit is contained in:
parent
28a700de9b
commit
436fdee272
@ -631,10 +631,40 @@ line_state() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Which profile is used?
|
||||||
|
#
|
||||||
|
profile() {
|
||||||
|
local bpstg=$(dsl_cmd bpstg)
|
||||||
|
local profile=$(dsl_val "$bpstg" nProfile);
|
||||||
|
local s;
|
||||||
|
|
||||||
|
case "$profile" in
|
||||||
|
"0") s="8a" ;;
|
||||||
|
"1") s="8b" ;;
|
||||||
|
"2") s="8c" ;;
|
||||||
|
"3") s="8d" ;;
|
||||||
|
"4") s="12a" ;;
|
||||||
|
"5") s="12b" ;;
|
||||||
|
"6") s="17a" ;;
|
||||||
|
"7") s="30a" ;;
|
||||||
|
"8") s="17b" ;;
|
||||||
|
"") s="";;
|
||||||
|
*) s="unknown" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ "$action" = "lucistat" ]; then
|
||||||
|
echo "dsl.profile=${profile:-nil}"
|
||||||
|
else
|
||||||
|
echo "Profile: $s"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
status() {
|
status() {
|
||||||
vendor
|
vendor
|
||||||
chipset
|
chipset
|
||||||
xtse
|
xtse
|
||||||
|
profile
|
||||||
line_state
|
line_state
|
||||||
errors
|
errors
|
||||||
power_mode
|
power_mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user