Do not break rc.newwanip by putting more information than requested in the file.

This commit is contained in:
Ermal Lui 2009-12-21 17:39:14 +00:00
parent 771df54ef1
commit 3ac300702c

View File

@ -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
}