mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 05:34:34 +08:00
Update windowsInit.sh
This commit is contained in:
parent
197836b9ef
commit
270d1141ad
1 changed files with 6 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue