Guest User

Untitled

a guest
Nov 12th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/bin/sh
  2. case "$reason" in (BOUND|RENEW|REBIND|REBOOT)
  3. (
  4. echo To: me@my.email
  5. echo From: me@my.email
  6. echo "Content-Type: text/html; "
  7. echo Subject: DHCP reason: $reason
  8. echo
  9. echo Your IP address is: `curl -s https://api.ipify.org`
  10. ) | sendmail -t
  11. ;;
  12. esac
  13.  
  14. #!/bin/sh
  15. (
  16. echo To: me@my.email
  17. echo From: me@my.email
  18. echo "Content-Type: text/html; "
  19. echo Subject: IP address change
  20. echo
  21. echo Your IP address is: `curl -s https://api.ipify.org`
  22. ) | sendmail -t
Add Comment
Please, Sign In to add comment