#!/bin/sh # Remove the WINS options added by ip-up.d/45-wins.sh if [ "$USEPEERWINS" ]; then if [ -r /etc/samba/smb.conf ]; then [ -n "${WINS1}" ] && sed -re "s/^([[:space:]]*wins ?server.*) ${WINS1}/\1/" /etc/samba/smb.conf [ -n "${WINS2}" -a "${WINS2}" != "${WINS1}" ] && sed -re "s/^([[:space:]]*wins ?server.*) ${WINS2}/\1/" /etc/samba/smb.conf fi fi