#!/bin/sh DEVCLASS=$1 DEVNAME=$2 case $DEVCLASS in 2) # disk devices rmdir /mnt/${DEVNAME}* ;; esac