#!/bin/bash # # Setup NISDOMAIN # WORKGROUPDOMAIN= domain="NISDOMAIN=$WORKGROUPDOMAIN" file=/etc/sysconfig/network grep "$domain" $file > /dev/null || echo "$domain" >> $file # make sure needed services are on /sbin/chkconfig --level 35 ypbind on /sbin/chkconfig --level 35 portmap on /sbin/chkconfig --level 35 autofs on