mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-23 08:31:05 +00:00
Merge pull request #390 from akuker/rdmark_kill_other_oled
Pkill other oled monitor scripts before starting new one
This commit is contained in:
commit
61e596aedf
@ -47,6 +47,12 @@ if [ $ERROR = 1 ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if pgrep -f "python3 rascsi_oled_monitor.py" &> /dev/null; then
|
||||||
|
echo "Detected active rascsi_oled_monitor.py process"
|
||||||
|
echo "Terminating before launching a new one."
|
||||||
|
sudo pkill -f "python3 rascsi_oled_monitor.py"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! i2cdetect -y 1 &> /dev/null ; then
|
if ! i2cdetect -y 1 &> /dev/null ; then
|
||||||
echo "i2cdetect -y 1 did not find a screen."
|
echo "i2cdetect -y 1 did not find a screen."
|
||||||
exit 2
|
exit 2
|
||||||
|
Loading…
Reference in New Issue
Block a user