#!/bin/sh# sanity check. DEVNAME should start with a /["$DEVNAME"!="${DEVNAME#/}"]||exit0# Lazily unmount drives which are removed, but still mountedif["$ACTION"=remove]\&&(grep-q"^$DEVNAME"/proc/mounts||grep-q"^$DEVNAME"/etc/mtab);thenif[-x/usr/bin/pumount];then/usr/bin/pumount-l"$DEVNAME";else/bin/umount-l"$DEVNAME";fifiexit0