On 08/25/2012 07:26 PM, Timothy Murphy wrote:
> I have a script
> ---------------------------------
> #! /bin/sh
> sudo systemctl restart [email protected]
> ---------------------------------
> which I run (under Fedora-17) if vpn is not connected when I logon
> (normally after hibernating).
>
> I'm wondering if there is a "systemctl enable" or similar command
> which will do this more simply?

Which desktop do you use?  KDE has an Autostart capability.  You could modify 
your script to detect if the connection is active and if so do nothing and if 
not run the "systemctl restart" which you currently run by hand...which is what 
I think you are doing.

-- 
Programming today is a race between software engineers striving to build bigger 
and better idiot-proof programs, and the Universe trying to produce bigger and 
better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry 
Compiled
-- 
users mailing list
[email protected]
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to