From 270d1141ad2fbb66d488c8df2ffaa1b1d8e523da Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Thu, 12 Oct 2023 17:21:10 +0900 Subject: [PATCH] Update windowsInit.sh --- Linux_reinstall/Windows/windowsInit.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Linux_reinstall/Windows/windowsInit.sh b/Linux_reinstall/Windows/windowsInit.sh index a51c9ee..bb03e21 100644 --- a/Linux_reinstall/Windows/windowsInit.sh +++ b/Linux_reinstall/Windows/windowsInit.sh @@ -75,13 +75,13 @@ wget --no-check-certificate -qO "$setupCompleteFile" ''$windowsStaticConfigCmd'' # Write static config script to setup step. if [[ "$Network4Config" == "isStatic" ]]; then - sed -ri "s/IPv4/$IPv4/g" "$setupCompleteFile" - sed -ri "s/actualIp4Subnet/$actualIp4Subnet/g" "$setupCompleteFile" - sed -ri "s/GATE/$GATE/g" "$setupCompleteFile" - sed -ri "s/ipDNS1/$ipDNS1/g" "$setupCompleteFile" - sed -ri "s/ipDNS2/$ipDNS2/g" "$setupCompleteFile" + sed -ri "s/IPv4/$IPv4/g" "$setupCompleteFile" + sed -ri "s/actualIp4Subnet/$actualIp4Subnet/g" "$setupCompleteFile" + sed -ri "s/GATE/$GATE/g" "$setupCompleteFile" + sed -ri "s/ipDNS1/$ipDNS1/g" "$setupCompleteFile" + sed -ri "s/ipDNS2/$ipDNS2/g" "$setupCompleteFile" else - sed -ri "s/setmode=on/setmode=off/g" "$setupCompleteFile" + sed -ri "s/setmode=on/setmode=off/g" "$setupCompleteFile" fi # Umount mounted directory and loop device.