Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- case "$reason" in (BOUND|RENEW|REBIND|REBOOT)
- (
- echo To: me@my.email
- echo From: me@my.email
- echo "Content-Type: text/html; "
- echo Subject: DHCP reason: $reason
- echo
- echo Your IP address is: `curl -s https://api.ipify.org`
- ) | sendmail -t
- ;;
- esac
- #!/bin/sh
- (
- echo To: me@my.email
- echo From: me@my.email
- echo "Content-Type: text/html; "
- echo Subject: IP address change
- echo
- echo Your IP address is: `curl -s https://api.ipify.org`
- ) | sendmail -t
Add Comment
Please, Sign In to add comment