Kodi Community Forum

Full Version: Rebooting on Wake up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all.

This may sound like a strange thing to do but I have some issues with some of my network drives not being mounted on wake up and the easiest way to fix it that I have been able to find is to just to a restart.

I've tried creating a script in the sleep.d folder that will reboot the computer when it resumes from wake up however for some reason it seems to run whenever I send the computer to sleep although I have specified it to only run on resume or at least thats what I tried to do.

Here is the script:

Code:
#!/bin/sh
case "$1" in
    resume)
        su -c - root "reboot" ;;
    *) ;;
esac

Can anybody give me a hand with why this is happening and how to fix it.

Cheers.