|
@@ -6,20 +6,6 @@
|
|
|
RAMIPS_BOARD_NAME=
|
|
RAMIPS_BOARD_NAME=
|
|
|
RAMIPS_MODEL=
|
|
RAMIPS_MODEL=
|
|
|
|
|
|
|
|
-all500x_board_detect() {
|
|
|
|
|
- local systype
|
|
|
|
|
-
|
|
|
|
|
- systype=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo)
|
|
|
|
|
- case "$systype" in
|
|
|
|
|
- *"RT5350"*)
|
|
|
|
|
- RAMIPS_MODEL="Allnet ALL5003"
|
|
|
|
|
- ;;
|
|
|
|
|
- *"RT3352"*)
|
|
|
|
|
- RAMIPS_MODEL="Allnet ALL5002"
|
|
|
|
|
- ;;
|
|
|
|
|
- esac
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
ramips_board_detect() {
|
|
ramips_board_detect() {
|
|
|
local machine
|
|
local machine
|
|
|
local name
|
|
local name
|
|
@@ -230,12 +216,6 @@ ramips_board_detect() {
|
|
|
;;
|
|
;;
|
|
|
esac
|
|
esac
|
|
|
|
|
|
|
|
- case "$machine" in
|
|
|
|
|
- *"Allnet ALL500"[23]*)
|
|
|
|
|
- all500x_board_detect
|
|
|
|
|
- ;;
|
|
|
|
|
- esac
|
|
|
|
|
-
|
|
|
|
|
[ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name"
|
|
[ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name"
|
|
|
[ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine"
|
|
[ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine"
|
|
|
|
|
|