openvpn: proto handler; handle user config file
authorPaul Donald <redacted>
Thu, 12 Mar 2026 13:49:01 +0000 (14:49 +0100)
committerHannu Nyman <redacted>
Sun, 15 Mar 2026 06:45:36 +0000 (08:45 +0200)
Handle a user provided config file.

Signed-off-by: Paul Donald <redacted>
net/openvpn/files/lib/netifd/proto/openvpn.sh

index 33ffdcf5a0d5a5cb02b7f707c588ca8ac96c9906..6e83aafac71ad2d70ae2d09ebe5b4db80f59927e 100755 (executable)
@@ -128,6 +128,7 @@ proto_openvpn_setup() {
        append exec_params " --status /var/run/openvpn.$config.status"
        append exec_params " --syslog openvpn_$config"
        append exec_params " --tmp-dir /var/run"
+       [ -n "$config_file" ] && append exec_params " --config \"$config_file\""
 
        json_get_var ALLOW_DEPRECATED allow_deprecated
        [ -z "$ALLOW_DEPRECATED" ] && ALLOW_DEPRECATED=0
git clone https://git.99rst.org/PROJECT