mirror of
https://github.com/bin456789/reinstall.git
synced 2025-09-21 07:36:02 +00:00
core: 修复 is_in_china 混进了其他字符
This commit is contained in:
@@ -998,11 +998,11 @@ EOF
|
|||||||
|
|
||||||
# hack 4 网络配置
|
# hack 4 网络配置
|
||||||
collect_netconf
|
collect_netconf
|
||||||
|
is_in_china && is_in_china=true || is_in_china=false
|
||||||
line_num=$(grep -E -n 'MAC_ADDRESS=' init | cut -d: -f1)
|
line_num=$(grep -E -n 'MAC_ADDRESS=' init | cut -d: -f1)
|
||||||
cat <<EOF | sed -i "${line_num}r /dev/stdin" init
|
cat <<EOF | sed -i "${line_num}r /dev/stdin" init
|
||||||
source /alpine-network.sh \
|
source /alpine-network.sh \
|
||||||
"$mac_addr" "$ipv4_addr" "$ipv4_gateway" "$ipv6_addr" "$ipv6_gateway" \
|
"$mac_addr" "$ipv4_addr" "$ipv4_gateway" "$ipv6_addr" "$ipv6_gateway" "$is_in_china"
|
||||||
"$(is_in_china && echo true || echo false)"
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# hack 5 运行 trans.start
|
# hack 5 运行 trans.start
|
||||||
|
Reference in New Issue
Block a user