4
# No need to continue if we're called with an unsupported option
6
if [ "$reason" != BOUND ] && [ "$reason" != RENEW ] \
7
&& [ "$reason" != REBIND ] && [ "$reason" != REBOOT ] \
8
&& [ "$reason" != EXPIRE ] && [ "$reason" != FAIL ]
15
if [ -z "$new_netbios_name_servers" ] || [ "$reason" = FAIL ] \
16
|| [ "$reason" = EXPIRE ]
18
# FIXME: add sed magic to only remove wins servers
19
# associated with this interface
20
echo -n > /etc/samba/dhcp.conf
21
elif [ "$new_netbios_name_servers" != "$old_netbios_name_servers" ]
24
for server in $new_netbios_name_servers
26
serverlist="$serverlist $interface:$server"
28
# FIXME: add sed magic to only update wins servers
29
# associated with this interface
30
echo " wins server =$serverlist" > /etc/samba/dhcp.conf