#!/bin/sh
if ! pgrep -f lxde-pi-shutdown-helper ; then
  /usr/bin/lxde-pi-shutdown-helper
else
  /usr/bin/pkill orca
  /sbin/shutdown -h now
fi
