Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
21349229
Commit
21349229
authored
10 years ago
by
John Crispin
Browse files
Options
Downloads
Patches
Plain Diff
au1000: revert 43626 due to syntax errors
Signed-off-by:
John Crispin
<
blogic@openwrt.org
>
SVN-Revision: 43641
parent
ad35bcc4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
target/linux/au1000/base-files/etc/uci-defaults/02_network
+0
-17
0 additions, 17 deletions
target/linux/au1000/base-files/etc/uci-defaults/02_network
target/linux/au1000/base-files/lib/au1000.sh
+0
-59
0 additions, 59 deletions
target/linux/au1000/base-files/lib/au1000.sh
with
0 additions
and
76 deletions
target/linux/au1000/base-files/etc/uci-defaults/02_network
deleted
100755 → 0
+
0
−
17
View file @
ad35bcc4
#!/bin/sh
.
/lib/au1000.sh
.
/lib/functions/system.sh
.
/lib/functions/uci-defaults.sh
MAC
=
case
"
$(
au1000_board_name
)
"
in
'internetbox'
)
MAC
=
"
$(
au1000_yamonenv_getvar
'ethaddr'
)
"
MAC
=
"
$(
macaddr_canonicalize
"
$MAC
"
)
"
[
-n
"
$MAC
] && ucidef_set_interface_macaddr lan "
$MAC
"
;;
esac
[ -z "
$MAC
" ] || uci commit network
This diff is collapsed.
Click to expand it.
target/linux/au1000/base-files/lib/au1000.sh
deleted
100644 → 0
+
0
−
59
View file @
ad35bcc4
#!/bin/sh
au1000_yamonenv_getvar
()
{
local
varname
=
"
$1
"
local
partition
.
/lib/functions.sh
partition
=
"
$(
find_mtd_part
'yamon env'
)
"
YAMONENVFILE
=
"
$partition
"
yamonenv
"
$varname
"
}
au1000_detect
()
{
local
line board_name model
while
read
line
;
do
case
"
$line
"
in
'system type'
*
)
break
;;
esac
done
<
'/proc/cpuinfo'
case
"
$line
"
in
*
' MTX-1'
)
# both models appear nearly similar: the 'InternetBox' has
# the same design but shrinked to 1 PCB and only 1 x miniPCI
# for WiFi/ath5k and 1 x miniPCI for CardBus/UMTS, they differ
# in BogoMIPS but there are old MeshCubes with 330 Mhz instead
# of 400 MHz and no Cube has 'imei' (for UMTS) set in bootloader-env
if
[
-n
"
$(
au1000_yamonenv_getvar
'imei'
)
"
]
;
then
board_name
=
'internetbox'
model
=
'T-Mobile InternetBox TMD SB1-S'
else
board_name
=
'meshcube'
model
=
'4G Systems AccessCube/MeshCube'
fi
;;
*
)
board_name
=
'unknown'
model
=
'unknown'
;;
esac
mkdir
-p
'/tmp/sysinfo'
echo
"
$board_name
"
>
'/tmp/sysinfo/board_name'
echo
"
$model
"
>
'/tmp/sysinfo/model'
}
au1000_board_name
()
{
local
file
=
'/tmp/sysinfo/board_name'
[
-e
"
$file
"
]
||
au1000_detect
cat
"
$file
"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment