mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-11-10 01:10:30 +08:00
Update windowsInit.sh
This commit is contained in:
parent
05d519b538
commit
f05fbcb967
1 changed files with 1 additions and 2 deletions
|
|
@ -71,8 +71,7 @@ ntfs-3g /dev/mapper/$mapperDevice /mnt
|
||||||
|
|
||||||
# write static config script to setup step
|
# write static config script to setup step
|
||||||
[[ "$Network4Config" == "isStatic" ]] && {
|
[[ "$Network4Config" == "isStatic" ]] && {
|
||||||
setupCompleteFile='/mnt/ProgramData/Microsoft/Windows/Start Menu/Programs/Startup/SetupComplete.bat'
|
setupCompleteFile='/mnt/Users/Administrator/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/SetupComplete.bat'
|
||||||
[[ ! -d '/mnt/ProgramData/Microsoft/Windows/Start Menu/Programs/Startup/' ]] && setupCompleteFile='/mnt/ProgramData/Microsoft/Windows/Start Menu/Programs/StartUp/SetupComplete.bat'
|
|
||||||
wget --no-check-certificate -qO $setupCompleteFile ''$windowsStaticConfigCmd''
|
wget --no-check-certificate -qO $setupCompleteFile ''$windowsStaticConfigCmd''
|
||||||
sed -ri "s/IPv4/$IPv4/g" $setupCompleteFile
|
sed -ri "s/IPv4/$IPv4/g" $setupCompleteFile
|
||||||
sed -ri "s/actualIp4Subnet/$actualIp4Subnet/g" $setupCompleteFile
|
sed -ri "s/actualIp4Subnet/$actualIp4Subnet/g" $setupCompleteFile
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue