aredn/files/usr/local/bin/get_model

12 lines
231 B
Bash
Executable File

#!/bin/sh
#CMLARA: Temporary shell script for ar71xx platform models
# Return the model of the device
if [ ! -f /tmp/sysinfo/model ]; then
. /lib/functions.sh
. /lib/ar71xx.sh
ar71xx_board_detect
fi
cat /tmp/sysinfo/model