summaryrefslogtreecommitdiffstats
path: root/sbin/ppp-script
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@G5.local>2009-10-26 12:50:21 -0400
committerScott Ullrich <sullrich@G5.local>2009-10-26 12:50:21 -0400
commit9d933d94971439fef2f7a945d20ac1c4a7cca324 (patch)
tree04edcebb7beee801e67c4e98bec56496bb241c72 /sbin/ppp-script
parent1d894eafbfc039a29d782dc8c1d7956f8e6489f2 (diff)
downloadpfsense-9d933d94971439fef2f7a945d20ac1c4a7cca324.zip
pfsense-9d933d94971439fef2f7a945d20ac1c4a7cca324.tar.gz
Handle secondary DNS correctly for 3G
Diffstat (limited to 'sbin/ppp-script')
-rwxr-xr-xsbin/ppp-script4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ppp-script b/sbin/ppp-script
index 1749eb4..0aa7ced 100755
--- a/sbin/ppp-script
+++ b/sbin/ppp-script
@@ -9,11 +9,11 @@ if [ -f /var/etc/nameserver_$2 ]; then
fi
# DNS1
-if [ "$3" != "" ]; then
+if [ "$3" != "DNS0" ]; then
echo $3 >> /var/etc/nameserver_$2
fi
# DNS2
-if [ "$4" != "DNS2" ]; then
+if [ "$4" != "DNS1" ]; then
echo $4 >> /var/etc/nameserver_$2
fi \ No newline at end of file
OpenPOWER on IntegriCloud