Skip to content

Commit

Permalink
配置🔧:默认IP地址192.168.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xmyaaa authored Mar 13, 2024
1 parent 5087666 commit c9664e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmcc-rax3000m/hanwckf-immortalwrt/part3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cat package/base-files/files/bin/config_generate |grep hostname=
echo '=========Alert hostname OK!========='

echo '修改默认IP'
sed -i 's/ipad=${ipaddr:-"192.168.1.1"}/ipad=${ipaddr:-"192.168.2.1"}/g' package/base-files/files/bin/config_generate
sed -i 's/ipad=${ipaddr:-"192.168.1.1"}/ipad=${ipaddr:-"192.168.10.1"}/g' package/base-files/files/bin/config_generate
sed -i 's/addr_offset=2/addr_offset=8/g' package/base-files/files/bin/config_generate
sed -i 's/${ipaddr:-"192.168.$((addr_offset++)).1"}/${ipaddr:-"192.168.$((addr_offset++)).1"}/g' package/base-files/files/bin/config_generate
cat package/base-files/files/bin/config_generate |grep hostname=
Expand Down

0 comments on commit c9664e2

Please sign in to comment.