#! /bin/bash
### Configure

RUNLEVELCONF=/var/service/runlevelconf

### End configure
if [ ! -d $RUNLEVELCONF ]; then
    echo "$(basename $0): $RUNLEVELCONF does not exist"
    exit 2
else
    cd $RUNLEVELCONF
fi

if [ ! -f rlc.functions ]; then
    echo "$(basename $0): Cannot find rlc.functions"
    exit 2    
else
    . ./rlc.functions
fi

if [ $# = 0 ]; then
    echo "$(basename $0): Usage:"
    help_check "runlevel(s|k)"
    exit 2
fi

directive_syntax $1

if [ ! -f $1.picture ]; then
    touch $1.picture
fi

directive=$1
shift


if [ $# = 0 ]; then
    echo "$(basename $0): Usage:"
    help_check $directive
    exit 2 
fi
check $directive.picture "$@"



