#!/bin/sh
#by:key1088
services=chkconfig --list|cut -f1
for ser in $services
do
if [ "$ser" == "network" ]||[ "$ser" == "syslog" ]||[ "$ser" == "sshd" ]||[ "$ser" == "crond" ]||[ "$ser" == "atd" ];
then
chkconfig "$ser" on
else
chkconfig "$ser" off
fi
done
echo "network success!"
echo "syslog sucss!!"
echo "sshd success!!!!"
echo "crond success!!"
echo "atd success!!"