Root/target/linux/ppc40x/base-files/lib/ppc40x.sh

1#!/bin/sh
2#
3# Copyright (C) 2010 OpenWrt.org
4#
5
6ppc40x_board_name() {
7    local model
8
9    model=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /model/ {print $2}' /proc/cpuinfo)
10    echo $model
11}
12

Archive Download this file



interactive