mirror of https://github.com/hak5/openwrt-owl.git
treewide: drop target board_name functions
They are not used any longer. Signed-off-by: Mathias Kresin <dev@kresin.me>owl
parent
f12a32630f
commit
e0b9ec8e96
|
@ -41,12 +41,3 @@ apm821xx_board_detect() {
|
|||
echo "$APM821XX_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$APM821XX_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
apm821xx_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -1342,12 +1342,3 @@ ar71xx_board_detect() {
|
|||
echo "$AR71XX_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$AR71XX_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
ar71xx_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -38,13 +38,3 @@ arc_board_detect() {
|
|||
echo "$ARC_BOARD_MODEL" > /tmp/sysinfo/model
|
||||
echo "Detected $ARC_BOARD_NAME // $ARC_BOARD_MODEL"
|
||||
}
|
||||
|
||||
arc_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
||||
|
|
|
@ -38,13 +38,3 @@ arc_board_detect() {
|
|||
echo "$ARC_BOARD_MODEL" > /tmp/sysinfo/model
|
||||
echo "Detected $ARC_BOARD_NAME // $ARC_BOARD_MODEL"
|
||||
}
|
||||
|
||||
arc_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
||||
|
|
|
@ -79,12 +79,3 @@ at91_board_detect() {
|
|||
echo "$AT91_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$AT91_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
at91_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -n "$name" ] || name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -41,12 +41,3 @@ brcm2708_detect() {
|
|||
echo "$board_name" > /tmp/sysinfo/board_name
|
||||
echo "$model" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
brcm2708_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -n "$name" ] || name="unknown"
|
||||
|
||||
echo $name
|
||||
}
|
||||
|
|
|
@ -299,12 +299,3 @@ brcm63xx_detect() {
|
|||
echo "$board_name" > /tmp/sysinfo/board_name
|
||||
echo "$model" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
brcm63xx_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -n "$name" ] || name="unknown"
|
||||
|
||||
echo $name
|
||||
}
|
||||
|
|
|
@ -26,12 +26,3 @@ cns3xxx_board_detect() {
|
|||
echo "$CNS3XXX_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$CNS3XXX_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
cns3xxx_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -71,12 +71,3 @@ imx6_board_detect() {
|
|||
echo "$IMX6_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$IMX6_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
imx6_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -60,15 +60,6 @@ ipq806x_board_detect() {
|
|||
echo "$IPQ806X_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
ipq806x_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
||||
ipq806x_get_dt_led() {
|
||||
local label
|
||||
local ledpath
|
||||
|
|
|
@ -32,12 +32,3 @@ ixp4xx_board_detect() {
|
|||
echo "$IXP4XX_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$IXP4XX_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
ixp4xx_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo $name
|
||||
}
|
||||
|
|
|
@ -86,12 +86,3 @@ kirkwood_board_detect() {
|
|||
echo "$KIRKWOOD_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$KIRKWOOD_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
kirkwood_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -31,12 +31,3 @@ mcs814x_board_detect() {
|
|||
echo "$MCS814X_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$MCS814X_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
mcs814x_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -28,12 +28,3 @@ mpc85xx_board_detect() {
|
|||
echo "$MPC85XX_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$MPC85XX_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
mpc85xx_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -71,12 +71,3 @@ mvebu_board_detect() {
|
|||
echo "$MVEBU_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$MVEBU_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
mvebu_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -31,12 +31,3 @@ mxs_board_detect() {
|
|||
echo "$MXS_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$MXS_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
mxs_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -64,12 +64,3 @@ oxnas_board_detect() {
|
|||
echo "$OXNAS_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$OXNAS_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
oxnas_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
#!/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
|
||||
}
|
|
@ -716,12 +716,3 @@ ramips_board_detect() {
|
|||
echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
|
||||
echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
ramips_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "${name}"
|
||||
}
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
sunxi_board_name() {
|
||||
local name
|
||||
|
||||
[ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
|
||||
[ -z "$name" ] && name="unknown"
|
||||
|
||||
echo "$name"
|
||||
}
|
Loading…
Reference in New Issue