Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. [root@ rules.d]# cat 99-superuser.rules
  2. ACTION=="remove", KERNEL=="fw*1", SUBSYSTEM=="firewire", RUN+="/root/remove.bash"
  3. ACTION=="add", KERNEL=="fw*1", SUBSYSTEM=="firewire",RUN+="/root/add.bash"
  4.  
  5. [root@ rules.d]# cat /root/remove.bash
  6. #!/usr/bin/bash
  7. nslookup superuser.com 8.8.8.8 >> /root/udev.log 2>&1
  8.  
  9. [root@ rules.d]# cat /root/udev.log
  10. ;; connection timed out; no servers could be reached
  11.  
  12. [root@dmitr rules.d]# nslookup superuser.com 8.8.8.8
  13. Server: 8.8.8.8
  14. Address: 8.8.8.8#53
  15. Non-authoritative answer:
  16. Name: superuser.com
  17. Address: 151.101.1.69
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement