#!/bin/bash

USER=$(who | grep ":0" | cut -d" " -f1)

if [[ ${USER} != "" ]]; then
  su $USER -c /etc/hotplug/usb/usb-storage-helper
fi
