mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make the ppp-linkup script understand both address families.
This commit is contained in:
parent
e6b16f8945
commit
e32cb5d08d
@ -1,9 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# let the configuration system know that the ip has changed.
|
||||
/bin/echo $4 > /tmp/$1_router
|
||||
/bin/echo $3 > /tmp/$1_ip
|
||||
/usr/bin/touch /tmp/$1up
|
||||
if [ "$2" == "inet" ]; then
|
||||
# let the configuration system know that the ipv4 has changed.
|
||||
/bin/echo $4 > /tmp/$1_router
|
||||
/bin/echo $3 > /tmp/$1_ip
|
||||
/usr/bin/touch /tmp/$1up
|
||||
fi
|
||||
|
||||
if [ "$2" == "inet6" ]; then
|
||||
# let the configuration system know that the ipv6 has changed.
|
||||
/bin/echo $4 |cut -d% -f1 > /tmp/$1_routerv6
|
||||
/bin/echo $3 |cut -d% -f1 > /tmp/$1_ipv6
|
||||
/usr/bin/touch /tmp/$1upv6
|
||||
fi
|
||||
|
||||
ALLOWOVERRIDE=`/usr/bin/grep -c dnsallowoverride /conf/config.xml`
|
||||
if [ $ALLOWOVERRIDE -gt 0 ]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user