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