ppc40x: add sysupgrade support
[15.05/openwrt.git] / target / linux / ppc40x / base-files / lib / ppc40x.sh
diff --git a/target/linux/ppc40x/base-files/lib/ppc40x.sh b/target/linux/ppc40x/base-files/lib/ppc40x.sh
new file mode 100755 (executable)
index 0000000..8a6c487
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+
+ppc40x_board_name() {
+       local model
+
+       model=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /model/ {print $2}' /proc/cpuinfo)
+       echo $model
+}