#!/bin/bash
#   /***************************************************************************
#   **                                                                        **
#   **  License                                                               **
#   **  =======                                                               **
#   **                                                                        **
#   **  This software program is released under the terms of a license        **
#   **  agreement between you ('Licensee') and Intel. Do not use or load this **
#   **  software or any associated materials (collectively, the 'Software')   **
#   **  until you have carefully read the full terms and conditions of the    **
#   **  LICENSE located in this software package. By loading or using the     **
#   **  Software, you agree to the terms of this Agreement. If you do not     **
#   **  agree with the terms of this Agreement, do not install or use the     **
#   **  Software.                                                             **
#   ***************************************************************************/
#
#   /***************************************************************************
#   **                                                                        **
#   ** INTEL CORPORATION                                                      **
#   **                                                                        **
#   ** This software is supplied under the terms of the license included      **
#   ** above.  All use of this software must be in accordance with the terms  **
#   ** of that license.                                                       **
#   **                                                                        **
#   **  Abstract:                                                             **
#   **    Initialization script for PROCfgd                          **
#   **                                                                        **
#   ***************************************************************************/
#
# procfgd    Init/kill procfgd 
# chkconfig: 2345 10 90
# description: Activates/Deactivates Intel(R) PRO LAN Adapters PROCfg Application 
#
# probe: true

# See how we were called.
case "$1" in
    start)
        [ -x /usr/sbin/procfgd ] || exit 5
        /usr/sbin/procfgd
        sleep 1
        #[ -x /usr/sbin/procfg ] && /usr/sbin/procfg -f restore
        ;;
    stop)
        killall /usr/sbin/procfgd	
        ;;
    restart)
        $0 stop
        $0 start
        ;;
    *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit 0
