From a8fc9e073ca251b6cf43301f04d92a08690ffa91 Mon Sep 17 00:00:00 2001 From: yangxu52 Date: Sun, 10 Mar 2024 10:47:46 +0800 Subject: [PATCH] =?UTF-8?q?config=F0=9F=94=A7:=20default=20ip=20addr=20192?= =?UTF-8?q?.168.5.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h3c-nx30pro/hanwckf-immortalwrt/part3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/h3c-nx30pro/hanwckf-immortalwrt/part3.sh b/h3c-nx30pro/hanwckf-immortalwrt/part3.sh index 3fb6fbf..67503b1 100755 --- a/h3c-nx30pro/hanwckf-immortalwrt/part3.sh +++ b/h3c-nx30pro/hanwckf-immortalwrt/part3.sh @@ -15,12 +15,12 @@ #limitations under the License. echo '修改主机名' -sed -i "s/hostname='ImmortalWrt'/hostname='RAX3000M'/g" package/base-files/files/bin/config_generate +sed -i "s/hostname='ImmortalWrt'/hostname='NX30-Pro'/g" package/base-files/files/bin/config_generate 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.7.1"}/g' package/base-files/files/bin/config_generate +sed -i 's/ipad=${ipaddr:-"192.168.1.1"}/ipad=${ipaddr:-"192.168.5.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=