mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not break rc.newwanip by putting more information than requested in the file.
This commit is contained in:
parent
771df54ef1
commit
3ac300702c
@ -80,11 +80,11 @@ add_new_address() {
|
||||
$LOGGER "New Routers ($interface): $new_routers"
|
||||
|
||||
echo $new_routers > /tmp/${interface}_router
|
||||
cp /var/db/${interface}_ip /tmp/rc.newwanip_oldip 2>/dev/null
|
||||
echo $new_ip_address > /var/db/${interface}_ip
|
||||
cp /var/db/${interface}_ip /tmp/rc.newwanip_oldip 2>/dev/null
|
||||
# echo $new_ip_address > /var/db/${interface}_ip
|
||||
|
||||
echo $interface > /tmp/rc.newwanip
|
||||
echo $new_ip_address >> /tmp/rc.newwanip
|
||||
echo $interface > /tmp/rc.newwanip
|
||||
# echo $new_ip_address >> /tmp/rc.newwanip
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user