core: 解决 udhcpc 无法设置 onlink 网关

This commit is contained in:
bin456789
2023-10-27 11:46:06 +08:00
parent d4d383f99b
commit 31e66688e2
2 changed files with 44 additions and 11 deletions

View File

@ -1208,6 +1208,9 @@ EOF
get_function_content udhcpc |
insert_into_file usr/share/udhcpc/default.script after 'deconfig\|renew\|bound'
# 允许设置 ipv4 onlink 网关
sed -Ei 's,(0\.0\.0\.0\/0),"\1 onlink",' usr/share/udhcpc/default.script
# hack 4 网络配置
collect_netconf
is_in_china && is_in_china=true || is_in_china=false