Results 1 to 10 of 17

Thread: Suspend/Hibernate/Resume/Thaw - Scripts

Threaded View

  1. #1
    Join Date
    Jun 2013
    Beans
    9

    Suspend/Hibernate/Resume/Thaw - Scripts

    I need to run a script on a Suspend/Hibernate and on a Resume/Thaw. Now, I know the place to put the script is /etc/pm/sleep.d/ but this doesn't seem to work for a script requiring access to the network as the network is either already down or not up yet when it runs. Is there another place I need to put my script so it has access to the network before the network is shutdown on a suspend and after the network is up on a resume?

    Basically, I just need to send out a UDP broadcast like:

    echo -n "Resumed" | socat - udp-datagram:192.168.5.255:5100,broadcast

    I'm running ubuntu 11.10.
    Last edited by stbluesrul; July 5th, 2013 at 08:59 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •