Skip to content

Commit

Permalink
Update Pilight run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-luettecke committed Nov 9, 2020
1 parent f96d139 commit 1208031
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pilight/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ bashio::log.debug "Starting Setup of Pilight Server by reading values from Confi
if bashio::config.has_value "gpio_platform"; then GPIO_PLATFORM=$(bashio::config 'gpio_platform'); else GPIO_PLATFORM="none";fi
if bashio::config.has_value "hardware.sender"; then SENDER=$(bashio::config 'hardware.sender'); else SENDER=-1; fi
if bashio::config.has_value "hardware.receiver"; then RECEIVER=$(bashio::config 'hardware.receiver'); else RECEIVER=-1; fi
if bashio::config.has_value "debug"; then if bashio::config.true "debug"; then DEBUG="-D"; else DEBUG=""; fi; fi

# Output detected variables
bashio::log.info "GPIO Platform used: $GPIO_PLATFORM"
Expand All @@ -19,8 +18,8 @@ sed -i 's/\("receiver"\): \?".*"\(.*\)/\1: "'$RECEIVER'"\2/' /etc/pilight/config

if bashio::config.true "debug"; then
bashio::log.warning "Starting Pilight daemon in debug Mode"
/usr/local/sbin/pilight-daemon -F -D
else
bashio::log.info "Starting Pilight daemon"
/usr/local/sbin/pilight-daemon -F
fi

/usr/local/sbin/pilight-daemon -F "$DEBUG"

0 comments on commit 1208031

Please sign in to comment.