udev
When I use udev rules to execute a bash script it is executed more than once (7 times).Is there a way to stop it after the first time? I'm using ubuntu 7.10
|
Use the export command to export a flag, and abort execution if the flag exists. Something like this:
Code:
[ "$Script_run" = "yes" ] && exit 0 |
udev
The device i`m try is a USB Infra red adapter.If i use a flag as you have said udev won't run that script again unless i restart the computer.
|
Yes, but that's what your first question asked. You wanted it to "stop after the first time." So, can you be clearer about what you're asking?
By the way, you don't have to reboot. Just have another script: Code:
#!/bin/bash |
Re: Udev
Sorry for not being clear about my question.I did as you have instructed and now the script is run only once.Thank you.
|
All times are GMT -5. The time now is 06:05 AM. |