#!/bin/sh
# LSB wrapper for chkconfig
if [ -z $1 ]; then
  echo "usage $0 path_to_init_script (/etc/init.d/foo)"
  exit 1
else
  init_name=`basename $1`
  if [ -z $init_name ]; then
    echo "cannot seperate path from script name for $1"
    exit 1
  fi
  /sbin/chkconfig --add $init_name
fi
