Compare commits

..

43 commits

Author SHA1 Message Date
Kroese
314287071f
Update win2008r2-eval.xml 2025-10-05 16:29:30 +02:00
Kroese
f4cbf46807
Refactor first logon commands in win2008r2.xml
Removed command to add entry in hosts file and updated order for the shortcut creation command.
2025-10-05 16:29:00 +02:00
Kroese
9882160b53
Remove hosts file entry addition from XML 2025-10-05 16:27:53 +02:00
Kroese
9df185e22e
Update win2012r2.xml 2025-10-05 16:27:28 +02:00
Kroese
4a6e0e4811
Update command order and remove hosts entry command 2025-10-05 16:26:50 +02:00
Kroese
1c2e8d8c77
Update win2016.xml 2025-10-05 16:26:26 +02:00
Kroese
268b97be4f
Update win2019-eval.xml by removing hosts entry
Removed command to add entry in hosts file and adjusted order of subsequent commands.
2025-10-05 16:26:04 +02:00
Kroese
54225c3587
Update win2019-hv.xml 2025-10-05 16:25:41 +02:00
Kroese
85f9a7a315
Update first logon commands in win2019.xml
Removed command to add entry in hosts file and adjusted order of commands.
2025-10-05 16:25:22 +02:00
Kroese
6e22f57c1e
Remove hosts file entry command and adjust order 2025-10-05 16:24:40 +02:00
Kroese
3861ba2791
Modify first logon commands in win2022.xml
Removed command to add entry in hosts file and adjusted order of commands.
2025-10-05 16:24:20 +02:00
Kroese
7f7ac69738
Update win2025-eval.xml 2025-10-05 16:23:47 +02:00
Kroese
811df6c006
Update win2025.xml 2025-10-05 16:23:25 +02:00
Kroese
b1468455b1
Update win7x64-enterprise-eval.xml 2025-10-05 16:22:47 +02:00
Kroese
a7fc8da778
Update win7x64-enterprise.xml 2025-10-05 16:22:25 +02:00
Kroese
943dd61d3c
Update win7x64-ultimate.xml 2025-10-05 16:22:03 +02:00
Kroese
39c42c432d
Update win7x64.xml 2025-10-05 16:21:41 +02:00
Kroese
429ad8aae7
Update win7x86-enterprise.xml 2025-10-05 16:21:16 +02:00
Kroese
0c2e32ecd2
Update win7x86-ultimate.xml 2025-10-05 16:20:48 +02:00
Kroese
785d4883d2
Update first logon commands in win7x86.xml
Removed command to add entry in hosts file and adjusted order of subsequent commands.
2025-10-05 16:20:24 +02:00
Kroese
00ac2b40cb
Remove hosts file entry command from XML 2025-10-05 16:19:44 +02:00
Kroese
ff2b375147
Update first logon commands in win81x64-enterprise.xml
Removed command to add entry in hosts file and adjusted order of commands.
2025-10-05 16:19:18 +02:00
Kroese
0fb9576014
Update win81x64.xml 2025-10-05 16:18:57 +02:00
Kroese
da486f7c73
Update first logon commands in XML configuration
Removed command to add entry in hosts file and adjusted order of commands.
2025-10-05 16:18:18 +02:00
Kroese
afaa000055
Update winvistax64-ultimate.xml 2025-10-05 16:17:57 +02:00
Kroese
fdc3be9b46
Remove hosts file entry command and adjust order 2025-10-05 16:17:37 +02:00
Kroese
270602ba37
Update winvistax86-enterprise.xml 2025-10-05 16:17:19 +02:00
Kroese
388fd4bb47
Update winvistax86-ultimate.xml 2025-10-05 16:16:58 +02:00
Kroese
09d84285d4
Update winvistax86.xml 2025-10-05 16:16:37 +02:00
Kroese
5fcc95d058
Update win11x64-enterprise-eval.xml 2025-10-05 16:10:45 +02:00
Kroese
2ce7dd3bb7
Refactor first logon commands in win11x64-enterprise.xml
Removed command to add entry in hosts file and adjusted order of subsequent commands.
2025-10-05 16:10:23 +02:00
Kroese
a2613263a8
Update win11x64-iot.xml 2025-10-05 16:10:01 +02:00
Kroese
27908c7279
Modify first logon commands in win11x64-ltsc.xml
Removed command to add entry in hosts file and adjusted order of commands.
2025-10-05 16:09:41 +02:00
Kroese
d78873c64f
Remove hosts file entry command and adjust order
Removed command to add entry in hosts file and adjusted order of subsequent commands.
2025-10-05 16:09:20 +02:00
Kroese
bd0217ff53
Refactor first logon commands in XML configuration
Removed command to add entry in hosts file and adjusted order for creating desktop shortcut.
2025-10-05 16:08:39 +02:00
Kroese
df34f1c8c3
Update win10x64-enterprise.xml 2025-10-05 16:08:11 +02:00
Kroese
d58aea5cab
Update win10x64-iot.xml 2025-10-05 16:07:44 +02:00
Kroese
c5a70161e7
Update first logon commands in win10x64-ltsc.xml
Removed command to add entry in hosts file and adjusted order of commands.
2025-10-05 16:07:21 +02:00
Kroese
1f823c51da
Update win10x64.xml 2025-10-05 16:06:41 +02:00
Kroese
1f52119169
fix: Remove hosts file
Removed IP address handling and related file operations.
2025-10-05 16:05:13 +02:00
Kroese
8f9d6b7e76
feat: Remove hosts file 2025-10-05 16:02:17 +02:00
Kroese
b977119ee2
fix: Gateway 2025-10-05 08:53:13 +02:00
Kroese
469be849f0
fix: Gateway 2025-10-05 08:51:58 +02:00
2 changed files with 16 additions and 33 deletions

View file

@ -103,19 +103,11 @@ finish() {
pid="/var/run/tpm.pid"
[ -s "$pid" ] && pKill "$(<"$pid")"
rm -f "$pid"
pid="/var/run/wsdd.pid"
[ -s "$pid" ] && pKill "$(<"$pid")"
rm -f "$pid"
pid="/var/run/samba/nmbd.pid"
[ -s "$pid" ] && pKill "$(<"$pid")"
rm -f "$pid"
pid="/var/run/samba/smbd.pid"
[ -s "$pid" ] && pKill "$(<"$pid")"
rm -f "$pid"
fKill "smbd"
closeNetwork

View file

@ -7,31 +7,28 @@ set -Eeuo pipefail
tmp="/tmp/smb"
rm -rf "$tmp"
rm -f /var/run/wsdd.pid
rm -f /var/run/samba/nmbd.pid
rm -f /var/run/samba/smbd.pid
rm -rf /var/run/wsdd.pid
[[ "$SAMBA" == [Nn]* ]] && return 0
[[ "$NETWORK" == [Nn]* ]] && return 0
if [[ "$DHCP" == [Yy1]* ]]; then
socket="$IP"
hostname="$IP"
interfaces="$VM_NET_DEV"
else
hostname="host.lan"
case "${NETWORK,,}" in
"passt" | "slirp" )
interfaces="lo"
socket="127.0.0.1" ;;
*)
socket="$VM_NET_IP"
interfaces="$VM_NET_BRIDGE" ;;
esac
interfaces="dockerbridge"
if [ -n "${SAMBA_INTERFACE:-}" ]; then
interfaces+=",$SAMBA_INTERFACE"
fi
if [[ "$DHCP" == [Yy1]* ]]; then
hostname="$IP"
interfaces="$VM_NET_DEV"
fi
if [[ "${NETWORK,,}" == "user"* ]]; then
interfaces="lo"
if ! ip link set "$interfaces" multicast on >/dev/null; then
warn "Failed to enable multicast on loopback interface!"
fi
fi
html "Initializing shared folder..."
@ -101,7 +98,6 @@ addShare() {
echo " follow symlinks = yes"
echo " wide links = yes"
echo " unix extensions = no"
echo " socket address = $socket"
echo ""
echo " # disable printing services"
echo " load printers = no"
@ -162,11 +158,6 @@ if [[ "$SAMBA_DEBUG" == [Yy1]* ]]; then
tail -fn +0 /var/log/samba/log.smbd &
fi
case "${NETWORK,,}" in
"user"* | "passt" | "slirp" )
return 0 ;;
esac
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
# Enable NetBIOS on Windows 7 and lower