summaryrefslogtreecommitdiffstats
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
parent1d894eafbfc039a29d782dc8c1d7956f8e6489f2 (diff)
downloadpfsense-9d933d94971439fef2f7a945d20ac1c4a7cca324.zip
pfsense-9d933d94971439fef2f7a945d20ac1c4a7cca324.tar.gz
Handle secondary DNS correctly for 3G
-rw-r--r--etc/inc/interfaces.inc2
-rwxr-xr-xsbin/ppp-script4
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 124d0d2..605e44f 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -927,7 +927,7 @@ function interface_ppp_configure($ifcfg) {
$i++;
$startingip++;
$rclinkup.= "{$dev}:\n";
- $rclinkup.= " ! sh -c \"/sbin/ppp-script HISADDR INTERFACE DNS1 DNS2 \"\n";
+ $rclinkup.= " ! sh -c \"/sbin/ppp-script HISADDR INTERFACE DNS0 DNS1 \"\n";
$rclinkup.= " ! sh -c \"/etc/rc.linkup INTERFACE start\"\n";
}
}
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