#!/bin/sh
# url: http://pank.org/scripts/
# description: turn all services on or off
# comment: csh bash
# platform: linux

if [ -z $1 ] ; then
    echo Usage: $0 "{on|off}"
else
    for i in `chkconfig --list | awk '/0:/ {print $1}'`
    do 
        chkconfig $i $1
    done
fi