Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openwrt-openwisp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Jan Grewe
openwrt-openwisp
Commits
ce376e92
Commit
ce376e92
authored
1 year ago
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
fix uci-defaults script for network config
parent
7f972984
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
files/etc/uci-defaults/99-custom
+7
-0
7 additions, 0 deletions
files/etc/uci-defaults/99-custom
with
7 additions
and
0 deletions
files/etc/uci-defaults/
lan_dhcp
→
files/etc/uci-defaults/
99-custom
+
7
−
0
View file @
ce376e92
#!/bin/sh
uci
-q
batch
<<
EOF
set network.lan.proto=dhcp
cat << "EOF" > /etc/uci-defaults/99-custom
uci -q batch << EOI
set network.lan.proto='dhcp'
delete network.lan.ipaddr
delete network.lan.netmask
commit network
EOI
EOF
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