#!/bin/sh
#set -f
echo Content-type: text/html
echo
rm  /home/netdas/etc/masters.txt
rm  /home/netdas/etc/slaves.txt
rm  /home/netdas/etc/tcpip_setup
rm  /home/netdas/etc/resolv.conf
cp /var/www/localhost/cgi-bin/mastersnew.txt /home/netdas/etc/masters.txt
cp /var/www/localhost/cgi-bin/slavesnew.txt /home/netdas/etc/slaves.txt
cp /var/www/localhost/cgi-bin/tcpipnew.txt /home/netdas/etc/tcpip_setup
cp /var/www/localhost/cgi-bin/resolv.conf /home/netdas/etc/resolv.conf
echo "<html><head></head><body bgcolor='#000000'>"
echo "<script language='Javascript1.2'>"
echo "alert('SAVE done. Press <Ok> to return');"
echo "location.replace('/config/netdas.htm');"
echo "</script>"
echo "</body></html>"



