summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-08-20 08:00:14 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-08-20 08:00:14 -0300
commitfe85513ffa0d4bd018bf5a725fc66a016c3cf5c7 (patch)
tree398c30e1c833ac35dbfa04238f0d3f3c940c1419 /usr/local/sbin
parentbfe9c9e7a3a103ff1b278e5af5f8a7c39051810d (diff)
downloadpfsense-fe85513ffa0d4bd018bf5a725fc66a016c3cf5c7.zip
pfsense-fe85513ffa0d4bd018bf5a725fc66a016c3cf5c7.tar.gz
Fix awk syntax, it fixes #3813
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-xusr/local/sbin/ppp-linkup8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup
index 9e4aafd..3889f63 100755
--- a/usr/local/sbin/ppp-linkup
+++ b/usr/local/sbin/ppp-linkup
@@ -18,12 +18,12 @@ if [ "${2}" == "inet" ]; then
if [ ${ALLOWOVERRIDE} -gt 0 ]; then
# write nameservers to file
if [ "`echo ${6}|grep -c dns1`" -gt 0 ]; then
- DNS1=`echo ${6} |awk '{print ${2}}'`
+ DNS1=`echo ${6} |awk '{print $2}'`
echo "${DNS1}"> /var/etc/nameserver_${1}
/sbin/route change "${DNS1}" ${4}
fi
if [ "`echo ${7}|grep -c dns2`" -gt 0 ]; then
- DNS2=`echo ${7} |awk '{print ${2}}'`
+ DNS2=`echo ${7} |awk '{print $2}'`
echo "${DNS2}" >> /var/etc/nameserver_${1}
/sbin/route change "${DNS2}" ${4}
fi
@@ -43,12 +43,12 @@ if [ "${2}" == "inet6" ]; then
if [ ${ALLOWOVERRIDE} -gt 0 ]; then
# write nameservers to file
if [ "`echo ${6}|grep -c dns1`" -gt 0 ]; then
- DNS1=`echo ${6} |awk '{print ${2}}'`
+ DNS1=`echo ${6} |awk '{print $2}'`
echo "${DNS1}"> /var/etc/nameserver_v6${1}
/sbin/route change -inet6 "${DNS1}" ${4}
fi
if [ "`echo ${7}|grep -c dns2`" -gt 0 ]; then
- DNS2=`echo ${7} |awk '{print ${2}}'`
+ DNS2=`echo ${7} |awk '{print $2}'`
echo "${DNS2}" >> /var/etc/nameserver_v6${1}
/sbin/route change -inet6 "${DNS2}" ${4}
fi
OpenPOWER on IntegriCloud