3 # Copyright (C) 2012 OpenWrt.org
9 mcs814x_board_detect() {
13 machine=$(cat /proc/device-tree/model)
16 *"Devolo dLAN USB Extender")
17 name="dlan-usb-extender"
24 [ -z "$name" ] && name="unknown"
26 [ -z "$MCS814X_BOARD_NAME" ] && MCS814X_BOARD_NAME="$name"
27 [ -z "$MCS814X_MODEL" ] && MCS814X_MODEL="$machine"
29 [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
31 echo "$MCS814X_BOARD_NAME" > /tmp/sysinfo/board_name
32 echo "$MCS814X_MODEL" > /tmp/sysinfo/model