Results 1 to 2 of 2

Thread: How to run scripts when waking from suspend mode - UFW & VPN

  1. #1
    Join Date
    May 2011
    Beans
    76

    How to run scripts when waking from suspend mode - UFW & VPN

    So I am guessing I can add scripts at /etc/pm/sleep.d for Ubuntu 12.04 LTS to do things when a laptop wakes from suspend mode.

    A few questions:
    a. Do I add new scripts to an existing file here or create new ones in the same folder? Do new filenames matter?
    b. My VPN & UFW seem to be disabled after suspend mode. I am guessing I can add a script to start up UFW, would it be as simple as a script saying "start ufw" or "start gufw"? c. What would be the command to restart a particular VPN connection?

    Here's the current contents of my sleep.d folder:
    00_check_touchpad_status 10_unattended-upgrades-hibernate
    10_grub-common novatel_3g_suspend

    Thanks!

  2. #2
    Join Date
    May 2011
    Beans
    76

    Re: How to run scripts when waking from suspend mode - UFW & VPN

    Anyone?

Tags for this Thread

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
  •