/*
 * Copyright 1999 Sun Microsystems, Inc.  All Rights Reserved.
 */

#pragma ident "@(#)unplumb_solaris8.sh	1.1 99/11/02  Sun Microsystems"

#!/bin/sh

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
