mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
fix: Remove hosts file
Removed IP address handling and related file operations.
This commit is contained in:
parent
8f9d6b7e76
commit
1f52119169
1 changed files with 0 additions and 11 deletions
|
|
@ -1584,9 +1584,6 @@ prepareInstall() {
|
||||||
[ -n "$PASSWORD" ] && password=$(echo "$PASSWORD" | sed 's/"//g')
|
[ -n "$PASSWORD" ] && password=$(echo "$PASSWORD" | sed 's/"//g')
|
||||||
[ -z "$password" ] && password="admin"
|
[ -z "$password" ] && password="admin"
|
||||||
|
|
||||||
local ip="20.20.20.1"
|
|
||||||
[ -n "${VM_NET_GATEWAY:-}" ] && ip="$VM_NET_GATEWAY"
|
|
||||||
|
|
||||||
find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \;
|
find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \;
|
||||||
|
|
||||||
{ echo "[Data]"
|
{ echo "[Data]"
|
||||||
|
|
@ -1769,14 +1766,6 @@ prepareInstall() {
|
||||||
echo ""
|
echo ""
|
||||||
echo "Call Domain.MoveHere(LocalAdminADsPath, \"$username\")"
|
echo "Call Domain.MoveHere(LocalAdminADsPath, \"$username\")"
|
||||||
echo ""
|
echo ""
|
||||||
echo "With (CreateObject(\"Scripting.FileSystemObject\"))"
|
|
||||||
echo " SysRoot = WshShell.ExpandEnvironmentStrings(\"%SystemRoot%\")"
|
|
||||||
echo " Set oFile = .OpenTextFile(SysRoot & \"\system32\drivers\etc\hosts\", 8, true)"
|
|
||||||
echo " oFile.Write(\"$ip host.lan\")"
|
|
||||||
echo " oFile.Close()"
|
|
||||||
echo " Set oFile = Nothing"
|
|
||||||
echo "End With"
|
|
||||||
echo ""
|
|
||||||
echo "Set oLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings(\"%userprofile%\\Desktop\\Shared.lnk\"))"
|
echo "Set oLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings(\"%userprofile%\\Desktop\\Shared.lnk\"))"
|
||||||
echo "With oLink"
|
echo "With oLink"
|
||||||
echo " .TargetPath = \"\\\\host.lan\\Data\""
|
echo " .TargetPath = \"\\\\host.lan\\Data\""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue