fix missing cfg error

This commit is contained in:
Derek Macias 2016-01-17 19:10:17 -07:00
parent 00e079fc8f
commit 72187fd09a

View File

@ -1,5 +1,9 @@
#!/bin/bash
source /boot/config/plugins/ipmitool-plugin/ipmitool-plugin.cfg
if [ $SERVICE = enable ]; then
/usr/local/emhttp/plugins/ipmitool-plugin/scripts/start
CFGFILE="/boot/config/plugins/ipmitool-plugin/ipmitool-plugin.cfg"
SERVICE="disable"
if [ -f $CFGFILE ]; then
source $CFGFILE
if [ $SERVICE = enable ]; then
/usr/local/emhttp/plugins/ipmitool-plugin/scripts/start
fi
fi