#!/bin/sh
#
#       Copyright (c) 2009 Brocade Communications Systems, Inc.
#       All rights reserved.
#
#       File name: sleep                     
#       Module name: fabos/src/utils/sys
#
#       This script is wrapper to the traditional /bin/sleep command
#       for enforcing the RBAC check on the CLI.
#
PATH=/fabos/libexec:/bin:/usr/bin/

# Check RBAC permission on command.
/fabos/libexec/rbac_check `basename $0`

if [ $? -ne 0 ]; then
        exit 127
fi

if [ $# -eq 0 ]; then
        /bin/sleep
else
        /bin/sleep $*
fi
