Corregir errata en script {{{setserveraddr}}} al crear cláusula {{{next-server}}} de DHCP.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@4320 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/debian-pkg
ramon 2014-07-07 09:44:47 +00:00
parent 0d4a8f5ce1
commit c6b55d8028
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ if [ -n "$SERVERIP" ]; then
for f in /etc/{dhcp,hcp3}/dhcpd.conf; do
if [ -f $f ]; then
# Cambiar el parámetro "next-server" de DHCP.
sed "s/next-server.*/next-server $SERVERIP/" $f >$tmpfile
sed "s/next-server.*/next-server $SERVERIP;/" $f >$tmpfile
file="${f/./-$1.}"
# Copiar el fichero y enlazarlo si hay cambios.
if ! diff -q $tmpfile $file &>/dev/null; then