Update windowsInit.sh

This commit is contained in:
Molly Lau 2023-10-12 17:21:10 +09:00 committed by GitHub
parent 197836b9ef
commit 270d1141ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.