#! /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_cons "runlevel[s|k]"
    exit 2
fi

runlevel_syntax $1

if [ $# != 1 ]; then
    echo "$(basename $0): Usage:"
    help_cons $1
    exit 2
else
    set "$(echo $1 | sed -e 's}s$}}' -e 's}k$}}')"
fi

if [ ! -f ${1}s.picture ]; then
    touch ${1}s.picture
elif [ ! -f ${1}k.picture ]; then
    touch ${1}k.picture
fi



consistency_check $1



