----------------------------------------------------------------------------------------------------------------------------------
#!/bin/sh--------------------------------------------------------------------------------------------------------------------------------
#
# Flash Temp Link Creator (by shuairan)
#
# description:
# does what has to be done.
# creates symlinks to the file descriptors of buffered firefox flash videos
# because the good old /tmp/FlashXXXX files are immediatly deleted with new flash player 10.2
#
# use at your own risk ;-D
# support, questions, bugs: twitter.com/shuairan or S.Riedinger@gmail.com
#Delete FlashXXXXXXXX symlinks
for i in $(ls -l /tmp | grep -i 'flash[[:alnum:]]\{8\} -> \/proc\/' | cut -d" " -f14); do
echo "Deleling: /tmp/$i"
rm "/tmp/$i"
done
#create new symlinks
for i in $(pgrep -f libflashplayer.so); do
ls -l /proc/$i/fd/* | grep -io '\/.* /tmp/flash[[:alnum:]]\{8\}' | while read line; do
echo $line
echo $i
FDFILE=$(echo $line | cut -d" " -f1)
TMPFILE=$(echo $line | cut -d" " -f3)
#echo "Create Symlink: $TMPFILE -> $FDFILE"
cp $FDFILE $TMPFILE
done
done
solo debes de guardar este contenido en un archivo .sh y darle permisos de ejecución luego ejecutarlo desde la terminal o doble click y darle en ejecutar y ya estará tu archivo en la carpeta /tmp
Espero les sirva
No hay comentarios:
Publicar un comentario