#!/bin/bash
#
# tksysv-helper
# 

case "$1" in
  --start)
	awk '/chkconfig:/ { print $4 }' $2
	;;
  --stop)
	awk '/chkconfig:/ { print $5 }' $2
	;;
  --levels)
	awk '/chkconfig:/ { print $3 }' $2
	;;
  *)
	echo "Usage: tksysv-helper {--start|--stop|--levels} filename"
	exit 1
esac

