Skip to content
Permalink
Browse files

Add error handling to thermal sensor check

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 7, 2019
1 parent ec6ee90 commit 1f70db3c87be365a033b3a1924392d549fee661c
Showing with 16 additions and 0 deletions.
  1. +4 −0 build/998-patches
  2. +12 −0 nems-upgrade/patches/000006
@@ -15,6 +15,10 @@ if ! grep -q "PATCH-000005" /var/log/nems/patches.log; then
echo "PATCH-000005" >> /var/log/nems/patches.log
fi

if ! grep -q "PATCH-000006" /var/log/nems/patches.log; then
echo "PATCH-000006" >> /var/log/nems/patches.log
fi




@@ -0,0 +1,12 @@
#!/bin/bash

# While this is the same as Patch 5, it's required for those who already had Patch 5 installed when check_rpi_temperature was improved
if ! grep -q "PATCH-000006" /var/log/nems/patches.log; then
cp -f /root/nems/nems-migrator/data/1.5/nagios/plugins/check_rpi_temperature /usr/lib/nagios/plugins/
echo "PATCH-000006" >> /var/log/nems/patches.log
else
echo "This patch is already applied."
fi



0 comments on commit 1f70db3

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