#!/bin/bash # # /etc/hotplug/usb/vpnkey # # Launches the SSH control script when an usb key is inserted or removed # (copied from Mandrake's /etc/hotplug/usb/usbcam) SCRIPT=/etc/dynamic/scripts/vpnkey.script if [ -x $SCRIPT ]; then if [ "${ACTION}" = "add" ]; then $SCRIPT add "${DEVICE}" if [ -n "$REMOVER" ]; then cat > $REMOVER <