#!/bin/sh
#
# Script Name: ShutdownXBMC
# Description: Expose call via XBMC to Shutdown
# Author     : Konstantinos Mantzaris <kmanjaris@gmail.com>
# Web Site   : http://SlaXBMC.blogspot.com
#

for i in `ps ax|grep autostart.sh | awk -F" " '{print $1}'` ; do
   kill -9 $i
done
kill -9 `pidof xbmc.bin`
shutdown -h now
