6 [ -f /tmp
/sysinfo
/model
] && model
=$
(cat /tmp
/sysinfo
/model
)
7 [ -z "$model" ] && model
="unknown"
15 [ -f /tmp
/sysinfo
/board_name
] && name
=$
(cat /tmp
/sysinfo
/board_name
)
16 [ -z "$name" ] && name
="unknown"
24 local basepath
="/sys/firmware/devicetree/base"
25 local nodepath
="$basepath/aliases/led-$1"
27 [ -f "$nodepath" ] && ledpath
=$
(cat "$nodepath")
28 [ -n "$ledpath" ] && label
=$
(cat "$basepath$ledpath/label")
33 lantiq_is_vdsl_system
() {
34 grep -qE "system type.*: (VR9|xRX200)" /proc
/cpuinfo