echo -n "$MS_DNS1" > /var/ipfire/red/dns1
echo -n "$MS_DNS2" > /var/ipfire/red/dns2
else
- if [ "$PRIMARY_DNS" != "10.11.12.13" || "$SECONDARY_DNS" != "10.11.12.14" ]; then
- echo -n "$PRIMARY_DNS" > /var/ipfire/red/dns1
- echo -n "$SECONDARY_DNS" > /var/ipfire/red/dns2
- else
+ if [ "$PRIMARY_DNS" == "10.11.12.13" ]; then
echo -n "$DNS1" > /var/ipfire/red/dns1
+ else
+ echo -n "$PRIMARY_DNS" > /var/ipfire/red/dns1
+ fi
+ if [ "$SECONDARY_DNS" == "10.11.12.14" ]; then
echo -n "$DNS2" > /var/ipfire/red/dns2
+ else
+ echo -n "$SECONDARY_DNS" > /var/ipfire/red/dns2
fi
fi
else