#!/bin/sh
#
#
#    Copyright (c) 1996-2006 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#
# NAME
#      diagdisablepost - disable diagnostic POST
# 
# SYNOPSIS
#      diagdisablepost
# 
# AVAILABILITY
#      admin
# 
# DESCRIPTION
#      This  command  will  disable  diagnostic POST(power on self-
#      test).  It does not require a reboot to take effect.
# 
# EXAMPLES
#      > diagdisablepost
#      Config update Succeeded
#      Post disable is now 1 (Disabled).
# 
# SEE ALSO
#      diagenablepost(1d)
# 

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

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

diagpost 0
