openwrt/target/linux/kirkwood/base-files/lib/kirkwood.sh

6 lines
104 B
Bash

#!/bin/sh
kirkwood_hardware_name() {
grep ^Hardware /proc/cpuinfo | sed "s/Hardware.*: \(.*\)/\1/g"
}