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
3348308a
Commit
3348308a
authored
9 years ago
by
Jo-Philipp Wich
Browse files
Options
Downloads
Patches
Plain Diff
arc770: switch from uci-defaults to board.d
Signed-off-by:
Jo-Philipp Wich
<
jow@openwrt.org
>
SVN-Revision: 47743
parent
dc4b0037
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/arc770/base-files/etc/board.d/00_model
+13
-0
13 additions, 0 deletions
target/linux/arc770/base-files/etc/board.d/00_model
target/linux/arc770/base-files/etc/board.d/02_network
+19
-0
19 additions, 0 deletions
target/linux/arc770/base-files/etc/board.d/02_network
with
32 additions
and
0 deletions
target/linux/arc770/base-files/etc/board.d/00_model
0 → 100755
+
13
−
0
View file @
3348308a
#!/bin/sh
# Copyright (C) 2015 OpenWrt.org
.
/lib/functions/uci-defaults-new.sh
board_config_update
ucidef_set_board_id
"
$(
cat
/tmp/sysinfo/board_name
)
"
ucidef_set_model_name
"
$(
cat
/tmp/sysinfo/model
)
"
board_config_flush
exit
0
This diff is collapsed.
Click to expand it.
target/linux/arc770/base-files/etc/
uci-defaults
/02_network
→
target/linux/arc770/base-files/etc/
board.d
/02_network
100644 → 100755
+
19
−
0
View file @
3348308a
...
...
@@ -3,21 +3,17 @@
# Copyright (C) 2015 OpenWrt.org
#
[
-e
/etc/config/network
]
&&
exit
0
touch
/etc/config/network
.
/lib/arc.sh
.
/lib/functions/uci-defaults.sh
.
/lib/functions/uci-defaults
-new
.sh
ucidef_set_interface_loopback
board_config_update
case
"
$(
arc_board_name
)
"
in
"arc-sdp"
*
)
ucidef_set_interface_
raw
"
lan
"
"eth0"
"dhcp"
ucidef_set_interface_lan
"eth0"
"dhcp"
;;
esac
uci commit network
board_config_flush
exit
0
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