Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@ rules.d]# cat 99-superuser.rules
- ACTION=="remove", KERNEL=="fw*1", SUBSYSTEM=="firewire", RUN+="/root/remove.bash"
- ACTION=="add", KERNEL=="fw*1", SUBSYSTEM=="firewire",RUN+="/root/add.bash"
- [root@ rules.d]# cat /root/remove.bash
- #!/usr/bin/bash
- nslookup superuser.com 8.8.8.8 >> /root/udev.log 2>&1
- [root@ rules.d]# cat /root/udev.log
- ;; connection timed out; no servers could be reached
- [root@dmitr rules.d]# nslookup superuser.com 8.8.8.8
- Server: 8.8.8.8
- Address: 8.8.8.8#53
- Non-authoritative answer:
- Name: superuser.com
- Address: 151.101.1.69
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement