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
|
||||
fi
|
||||
|
||||
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
|
||||
# Enable NetBIOS on Windows 7 and lower
|
||||
if ! nmbd; then
|
||||
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
|
||||
# Enable Web Service Discovery
|
||||
wsdd -i "$interface" -p -n "$hostname" &
|
||||
echo "$!" > /var/run/wsdd.pid
|
||||
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue