Skip to content
Permalink
Browse files

Move distro build to GPIO Extender

  • Loading branch information...
Cat5TV committed Jul 7, 2019
1 parent f7209e6 commit 15ae21014e0a51e8c566e49fea4e04e17f6bc51a
Showing with 15 additions and 7 deletions.
  1. +15 −7 install/build
@@ -37,14 +37,22 @@ fi
# Dump current crontab to tmp file
crontab -l > /tmp/cron.tmp

if ! grep -q "NEMS0012" /tmp/cron.tmp; then
if [[ ! -d /var/log/nems/nems-tools/ ]]; then
mkdir -p /var/log/nems/nems-tools/
fi
printf "\n# nems-tools warninglight NEMS0012\n@reboot /root/nems/nems-tools/warninglight >> /var/log/nems/nems-tools/warninglight 2>&1\n" >> /tmp/cron.tmp
cronupdate=1
# if ! grep -q "NEMS0012" /tmp/cron.tmp; then
# if [[ ! -d /var/log/nems/nems-tools/ ]]; then
# mkdir -p /var/log/nems/nems-tools/
# fi
# printf "\n# nems-tools warninglight NEMS0012\n@reboot /root/nems/nems-tools/warninglight >> /var/log/nems/nems-tools/warninglight 2>&1\n" >> /tmp/cron.tmp
# cronupdate=1
# Run it now
/root/nems/nems-tools/warninglight >> /var/log/nems/nems-tools/warninglight 2>&1 &
# /root/nems/nems-tools/warninglight >> /var/log/nems/nems-tools/warninglight 2>&1 &
# fi

# Install the NEMS Tools GPIO Extender daemon.
if ! grep -q "NEMS0016" /tmp/cron.tmp; then
printf "\n# NEMS Tools GPIO Extender Server NEMS0016\n@reboot /root/nems/nems-tools/gpio-extender/gpioe-server > /dev/null 2>&1\n" >> /tmp/cron.tmp
cronupdate=1
# Run it
/root/nems/nems-tools/gpio-extender/gpioe-server > /dev/null 2>&1 &
fi

# Import revised crontab

0 comments on commit 15ae210

Please sign in to comment.
You can’t perform that action at this time.