#!/bin/bash
IF=$1
STATUS=$2
if [ "$STATUS" = "up" ]; then
/etc/rc.d/openvpn start
else
/etc/rc.d/openvpn stop
fi
So that openvpn will start straight away whenever any interface (IF) has the status up.
Blog by abdza. Open Source, Computers, Gadgets, Life, Love and everything in between.
#!/bin/bash
IF=$1
STATUS=$2
if [ "$STATUS" = "up" ]; then
/etc/rc.d/openvpn start
else
/etc/rc.d/openvpn stop
fi
As I embark on my new journey to learn the Rust programming language, I find myself pondering—where have all the blogs gone? In search of pr...
2 comments:
This does not work for me. Running NM 0.7.996, does this method still work (am I doing something wrong) or have newer builds (since you posted) broken this functionality?
Maybe this might be of help?
https://issues.foresightlinux.org/browse/FL-1377
Post a Comment