Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
dd57d2ce
Unverified
Commit
dd57d2ce
authored
Jun 02, 2025
by
wukongdaily
Committed by
GitHub
Jun 02, 2025
Browse files
增加必要的提醒注释 防止有人修改错的ip地址
parent
02aa07b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
files/etc/uci-defaults/99-custom.sh
files/etc/uci-defaults/99-custom.sh
+4
-1
No files found.
files/etc/uci-defaults/99-custom.sh
View file @
dd57d2ce
...
@@ -69,7 +69,10 @@ elif [ "$count" -gt 1 ]; then
...
@@ -69,7 +69,10 @@ elif [ "$count" -gt 1 ]; then
fi
fi
# LAN口设置静态IP
# LAN口设置静态IP
uci
set
network.lan.proto
=
'static'
uci
set
network.lan.proto
=
'static'
# 多网口设备 支持修改为别的ip地址
# 多网口设备 支持修改为别的ip地址,别的地址应该是网关地址,形如192.168.xx.1 项目说明里都强调过。
# 大家不能胡乱修改哦 比如有人修改为192.168.100.55 这是错误的理解 这个项目不能提前设置旁路地址
# 旁路的设置分2类情况,情况一是单网口的设备,默认是DHCP模式,ip应该在上一级路由器里查看。之后进入web页在设置旁路。
# 情况二旁路由如果是多网口设备,也应当用网关访问网页后,在自行在web网页里设置。总之大家不能直接在代码里修改旁路网关。千万不要徒增bug啦。
uci
set
network.lan.ipaddr
=
'192.168.100.1'
uci
set
network.lan.ipaddr
=
'192.168.100.1'
uci
set
network.lan.netmask
=
'255.255.255.0'
uci
set
network.lan.netmask
=
'255.255.255.0'
echo
"set 192.168.100.1 at
$(
date
)
"
>>
$LOGFILE
echo
"set 192.168.100.1 at
$(
date
)
"
>>
$LOGFILE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment