#sccs "@(#)fndetc/convert:rcconvert 1.1" # Arg1 is the location of the saved file - full path in /u/SAVE # Arg2 is the full path in the system of the newly read in file # from the foundation set which overwrote what used to be there. # save the old /etc/rc in /etc/rc.old for the user cp $1 ${2}.old grep "setuname -n" $1 >/tmp/namecmd if [ -s /tmp/namecmd ] then mv /tmp/namecmd /etc/namesys chmod 755 /etc/namesys chgrp bin /etc/namesys chown bin /etc/namesys grep -v "setuname -n" /etc/rc >/tmp/rc mv /tmp/rc /etc/rc chmod 744 /etc/rc chgrp sys /etc/rc chown root /etc/rc fi # the calling program worries about cleanup of $1