aredn/files/usr/local/bin/get_model

8 lines
378 B
Bash
Executable File

#!/bin/sh
#CMLARA: Temporary shell script for ar71xx platform models
# Just resport what is on the /proc/cpuinfo field --- this will work for most ar71xx devices
# This doesn't work for linksys however since they have multiple devices
#Eventually we will want to to clean this up to a diffrent method
echo `awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo`;