Why does NetworkManager not allow this?
by nuxy from LinuxQuestions.org on (#6R26E)
Hi everyone!
I would like to change the file Code:/etc/NetworkManager/system-connections/vpn before or right after it is generated with a script.
This file is created when I first connect to the vpn.
These are the default values in it
Code:[connection]
id=<<VPNName>>
uuid=<<UUID>>
type=vpn
autoconnect=false
permissions=
secondaries=
zone=I want to change these three:
Code:autoconnect=true
permissions=user
zone=workThere seems to be no event like pre-down.d or pre-up.d that allows for a hook script to do this. I also don't see any way to modify whatever creates this file in the first place.
Is this even possible?
I would like to change the file Code:/etc/NetworkManager/system-connections/vpn before or right after it is generated with a script.
This file is created when I first connect to the vpn.
These are the default values in it
Code:[connection]
id=<<VPNName>>
uuid=<<UUID>>
type=vpn
autoconnect=false
permissions=
secondaries=
zone=I want to change these three:
Code:autoconnect=true
permissions=user
zone=workThere seems to be no event like pre-down.d or pre-up.d that allows for a hook script to do this. I also don't see any way to modify whatever creates this file in the first place.
Is this even possible?