#!/bin/sh
/usr/bin/killall -9 kodi-x11
sleep 1
umount -l /media/hd	&>/dev/null &
ls -d /media/zd??* | xargs -n1 umount -l	&>/dev/null &
svdrpsend plug softhddevice deta
sleep 1
svdrpsend plug softhdvapi deta
sleep 1
svdrpsend plug softhddrm deta
sleep 1
poweroff