#!/bin/sh
# prepatch, prebackout

# Stop the PC NetLink server
if [ -f /etc/init.d/ms_srv ]
then
    /etc/init.d/ms_srv stop
fi

# Stop the NetBIOS
if [ -f /etc/init.d/netbios ]
then
    /etc/init.d/netbios stop
fi

# unload netbios driver from memory
line=`modinfo | grep nbx`
id=`echo $line | cut -d" " -f1`
if [  -n "$id" ]
then
    /usr/sbin/modunload -i $id
fi

exit 0
