mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
20 lines
416 B
Bash
Executable File
20 lines
416 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# let the configuration system know that the ip has changed.
|
|
#/usr/local/sbin/pfSctl -c "interface newip $interface"
|
|
|
|
|
|
ifindex="${1##?????}"
|
|
if [ -e /dev/tun$ifindex ]; then
|
|
if [ "" != "$route_vpn_gateway" ]; then
|
|
/bin/echo $route_vpn_gateway > /tmp/$1_router
|
|
else
|
|
/bin/echo $5 > /tmp/$1_router
|
|
fi
|
|
fi
|
|
|
|
/usr/bin/touch /tmp/$1up
|
|
# reload filter
|
|
/usr/local/sbin/pfSctl -c "interface newip $1"
|
|
exit 0
|