kurci2
July 2nd, 2009, 01:16 PM
Hello!
I have a little problem.
I found these dwo sites:
http://ubuntuforums.org/showpost.php?p= … stcount=16
http://ubuntuforums.org/showthread.php?t=268291
they helped my with my problem.
i want to insert my usb in my computer and a script runs automatically, because i want to unlock my screen with usb.
i created file:
/etc/udev/rules.d/10-usbkeysync.rules, and i wrote that in it:
ACTION=="add", BUS=="usb", SYSFS{manufacturer}=="SanDisk Corporation", SYSFS{product}=="U3 Titanium", SYSFS{serial}=="SanDisk_U3_Titanium_0877701437811AA2-0:0", RUN+="/home/marko/unlock.sh"
my unlock.sh script is this:
#!/bin/bash
gnome-screensaver-command -d
but the probem is that, unlock.sh is not executed.
thanks for help!
I have a little problem.
I found these dwo sites:
http://ubuntuforums.org/showpost.php?p= … stcount=16
http://ubuntuforums.org/showthread.php?t=268291
they helped my with my problem.
i want to insert my usb in my computer and a script runs automatically, because i want to unlock my screen with usb.
i created file:
/etc/udev/rules.d/10-usbkeysync.rules, and i wrote that in it:
ACTION=="add", BUS=="usb", SYSFS{manufacturer}=="SanDisk Corporation", SYSFS{product}=="U3 Titanium", SYSFS{serial}=="SanDisk_U3_Titanium_0877701437811AA2-0:0", RUN+="/home/marko/unlock.sh"
my unlock.sh script is this:
#!/bin/bash
gnome-screensaver-command -d
but the probem is that, unlock.sh is not executed.
thanks for help!