You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
344 B
Bash
13 lines
344 B
Bash
#!/bin/sh
|
|
|
|
# GetV4 IP Check Service for pfSense - shell script
|
|
# APR-10-2023 - Jay Moore (dewdude@pickmy.org)
|
|
# https://git.pickmy.org/dewdude/HEDyn
|
|
|
|
# Modify "em0" to match your interface name. Place in
|
|
# /usr/local/www along with getv4.php.
|
|
|
|
# Make sure script is +x
|
|
|
|
ifconfig em0 | grep inet | awk -F '[ \t]+|/' '{print $3}' | grep -v ^fe80
|