Browse Source

restricted the search keyword not to be used multiple times

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1923 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
a7e4236a63
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      package/base/sysfiles/rocknet_modules_dns.sh

+ 6
- 1
package/base/sysfiles/rocknet_modules_dns.sh

@ -11,7 +11,12 @@ public_nameserver() {
}
public_search() {
addcode up 4 4 "echo search $1 >> /etc/resolv.conf"
if ! isfirst "dns_search"; then
error "Keyword >>search<< not allowed multiple times."
return
fi
addcode up 4 4 "echo search $* >> /etc/resolv.conf"
dns_init
}

Loading…
Cancel
Save