From 72187fd09a1062b92ec83edd4af8a6aec56552a7 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Sun, 17 Jan 2016 19:10:17 -0700 Subject: [PATCH] fix missing cfg error --- .../local/emhttp/plugins/ipmitool-plugin/event/started | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/ipmitool-plugin/usr/local/emhttp/plugins/ipmitool-plugin/event/started b/source/ipmitool-plugin/usr/local/emhttp/plugins/ipmitool-plugin/event/started index e5d9eefe..a9b87668 100755 --- a/source/ipmitool-plugin/usr/local/emhttp/plugins/ipmitool-plugin/event/started +++ b/source/ipmitool-plugin/usr/local/emhttp/plugins/ipmitool-plugin/event/started @@ -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