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
d355156a
Unverified
Commit
d355156a
authored
Aug 22, 2025
by
wukongdaily
Committed by
GitHub
Aug 22, 2025
Browse files
Update 99-custom.sh
parent
4e2dbcd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
files/etc/uci-defaults/99-custom.sh
files/etc/uci-defaults/99-custom.sh
+13
-3
No files found.
files/etc/uci-defaults/99-custom.sh
View file @
d355156a
...
@@ -93,11 +93,21 @@ elif [ "$count" -gt 1 ]; then
...
@@ -93,11 +93,21 @@ elif [ "$count" -gt 1 ]; then
echo
"Updated br-lan ports:
$lan_ifnames
"
>>
$LOGFILE
echo
"Updated br-lan ports:
$lan_ifnames
"
>>
$LOGFILE
fi
fi
# LAN静态IP
设置
# LAN
口设置
静态IP
uci
set
network.lan.proto
=
'static'
uci
set
network.lan.proto
=
'static'
uci
set
network.lan.ipaddr
=
'192.168.100.1'
# 多网口设备 支持修改为别的管理后台地址 在Github Action 的UI上自行输入即可
uci
set
network.lan.netmask
=
'255.255.255.0'
uci
set
network.lan.netmask
=
'255.255.255.0'
echo
"Set LAN IP to 192.168.100.1"
>>
$LOGFILE
# 设置路由器管理后台地址
IP_VALUE_FILE
=
"/etc/config/custom_router_ip.txt"
if
[
-f
"
$IP_VALUE_FILE
"
]
;
then
CUSTOM_IP
=
$(
cat
"
$IP_VALUE_FILE
"
)
# 用户在UI上设置的路由器后台管理地址
uci
set
network.lan.ipaddr
=
$CUSTOM_IP
echo
"custom router ip is
$CUSTOM_IP
"
>>
$LOGFILE
else
uci
set
network.lan.ipaddr
=
'192.168.100.1'
echo
"default router ip is 192.168.100.1"
>>
$LOGFILE
fi
# PPPoE设置
# PPPoE设置
echo
"enable_pppoe value:
$enable_pppoe
"
>>
$LOGFILE
echo
"enable_pppoe value:
$enable_pppoe
"
>>
$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