Proyecto

General

Perfil

« Anterior | Siguiente » 

Revisión 461

Filtro de equipos por MAC: servidor NFS

Ver diferencias:

dhcp-server-denegar/trunk/dhcp-server-denegar
NUMPC=`expr $NUMPC + 1`
MAC=`echo $linea | cut -f1 -d,`
PC=`echo $linea | cut -f2 -d, | tr '-' '_'`
if [ $PC ]; then
ESTA=`grep -w $PC $FILE_CONF` 2>/dev/null
if [ "$ESTA" ]; then PC=Equipo_$NUMPC; fi
else
PC=Equipo_$NUMPC
EQUIPO="Equipo_"$NUMPC
if [ "$PC" ]; then
EQUIPO=$EQUIPO"_"$PC
fi
echo "host $PC {
echo "host $EQUIPO {
hardware ethernet $MAC;
deny booting;
}" >> $FILE_CONF

Exportar a: Unified diff