#!/bin/sh #JMD 20060808 #Always run even if LOCAL_MEDIA is not set, since a user #might have a session on another terminal, and we don't want #him to access someone else's CD or USB key. #MYXTERM_IP=`echo $DISPLAY | cut -f1 -d":"` #if [ -r /tmp/lts.conf.$MYXTERM_IP ]; then # eval `grep LOCAL_MEDIA /tmp/lts.conf.$MYXTERM_IP` #fi mystartltspfs() { modprobe fuse chmod 666 /dev/fuse /usr/bin/pkill -9 -U $USER ltspfs /bin/umount -l $HOME/USB } #if [ "$LOCAL_MEDIA" = "Y" ]; then (echo 10; mystartltspfs; echo "100") \ | zenity --progress --pulsate --auto-close \ --progress-text "Managing USB" \ --title "Please wait..." --width 320 #fi