summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-09-08 14:30:02 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-09-08 14:30:02 (GMT)
commit8beb20649824b0bc50d953e11a6d49f01a76cace (patch)
treece1c830807935bc160f55036ca16c984babbc6aa
parent9aaaefcda2a88107de1c305f0b93efb1e07049d6 (diff)
downloadlinhes_pkgbuild-8beb20649824b0bc50d953e11a6d49f01a76cace.zip
linhes_pkgbuild-8beb20649824b0bc50d953e11a6d49f01a76cace.tar.gz
linhes_pkgbuild-8beb20649824b0bc50d953e11a6d49f01a76cace.tar.bz2
linhes-config: install_functions, account for multiple dns servers be removing all but the first.
-rwxr-xr-xabs/core-testing/LinHES-config/install_functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-config/install_functions.sh b/abs/core-testing/LinHES-config/install_functions.sh
index 72023bd..4df2e8c 100755
--- a/abs/core-testing/LinHES-config/install_functions.sh
+++ b/abs/core-testing/LinHES-config/install_functions.sh
@@ -296,7 +296,7 @@ function request_dhcp(){
update_db_settings HostNETMASK$ndev "$TEMPVAR"
TEMPVAR=`grep new_routers /tmp/dhcpinfo.$ndev |cut -d\= -f2`
update_db_settings HostGW$ndev "$TEMPVAR"
- TEMPVAR=`grep new_domain_name_servers /tmp/dhcpinfo.$ndev |cut -d\= -f2`
+ TEMPVAR=`grep new_domain_name_servers /tmp/dhcpinfo.$ndev |cut -d\= -f2| tr -d\"|tr -d\'|cut -d" " -f 1`
update_db_settings HostDNS$ndev "$TEMPVAR"
fi
fi