Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 7804252a8a3b41cb056fba81365ad12a > files > 12

mille-xterm-appserver-en_US-1.0-4mdv2010.0.noarch.rpm

#!/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