Update samba.sh
This commit is contained in:
parent
61b7d0014b
commit
c0e2be703d
1 changed files with 3 additions and 11 deletions
14
src/samba.sh
14
src/samba.sh
|
|
@ -108,16 +108,8 @@ if ! smbd; then
|
||||||
smbd -i --debug-stdout || true
|
smbd -i --debug-stdout || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
|
# Enable Web Service Discovery
|
||||||
# Enable NetBIOS on Windows 7 and lower
|
wsdd -i "$interface" -p -n "$hostname" &
|
||||||
if ! nmbd; then
|
echo "$!" > /var/run/wsdd.pid
|
||||||
error "NetBIOS daemon failed to start!"
|
|
||||||
nmbd -i --debug-stdout || true
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# Enable Web Service Discovery on Vista and up
|
|
||||||
wsdd -i "$interface" -p -n "$hostname" &
|
|
||||||
echo "$!" > /var/run/wsdd.pid
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue