mirror of
https://github.com/dockur/windows.git
synced 2025-10-14 07:46:11 +01:00
feat: Add additional debug messages (#1442)
This commit is contained in:
parent
e945e852dc
commit
fde0ae7c4b
@ -18,6 +18,9 @@ if [[ "${NETWORK,,}" == "user"* ]]; then
|
|||||||
interface="127.0.0.1"
|
interface="127.0.0.1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
html "Starting file sharing services..."
|
||||||
|
[[ "$DEBUG" == [Yy1]* ]] && echo "Starting Samba daemon..."
|
||||||
|
|
||||||
addShare() {
|
addShare() {
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
local name="$2"
|
local name="$2"
|
||||||
@ -123,12 +126,14 @@ fi
|
|||||||
|
|
||||||
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
|
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
|
||||||
# Enable NetBIOS on Windows 7 and lower
|
# Enable NetBIOS on Windows 7 and lower
|
||||||
|
[[ "$DEBUG" == [Yy1]* ]] && echo "Starting NetBIOS daemon..."
|
||||||
if ! nmbd; then
|
if ! nmbd; then
|
||||||
error "NetBIOS daemon failed to start!"
|
error "NetBIOS daemon failed to start!"
|
||||||
nmbd -i --debug-stdout || true
|
nmbd -i --debug-stdout || true
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Enable Web Service Discovery on Vista and up
|
# Enable Web Service Discovery on Vista and up
|
||||||
|
[[ "$DEBUG" == [Yy1]* ]] && echo "Starting Web Service Discovery daemon..."
|
||||||
wsddn -i "$interface" -H "$hostname" --pid-file=/var/run/wsdd.pid >/dev/null &
|
wsddn -i "$interface" -H "$hostname" --pid-file=/var/run/wsdd.pid >/dev/null &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user