#!/bin/sh

#
# Copyright 1999 Sun Microsystems, Inc.  All Rights Reserved.
#

#pragma ident "@(#)unplumb_solaris8.sh	1.2 01/09/17  Sun Microsystems"

INTERFACE=$1
MODNUM=""
OLDIFS=$IFS
IFS="
"
set -- `/usr/sbin/ifconfig $INTERFACE modlist`
while [ $# -gt 0 ]
do
	MODNAME=`echo $1 | awk '{print $2}'`
	if [ $MODNAME = efs ]; then
		MODNUM=`echo $1 | awk '{print $1}'`
		break;
	fi 
	shift
done
IFS=$OLDIFS

/sbin/ifconfig $INTERFACE modremove efs@$MODNUM 2>&1 > /dev/null
