- Rename vyprvpn-up/down to openvpn-up/down,

- Add network_route_dst_init function, to support VPN up/down roting table update.
This commit is contained in:
2025-08-09 10:29:41 +02:00
parent 67cb4f2940
commit e17b7ab24b
4 changed files with 64 additions and 38 deletions

View File

@@ -199,12 +199,12 @@ file_dir_init()
local dir
if [[ "$( id -u)" != "0" ]]
if [ ! -f ${File} ]
then
${ECHO} "Can't perform file init of: [${File}] as non root user!"
else
if [ ! -f ${File} ]
if [[ "$( id -u)" != "0" ]]
then
${ECHO} "Can't perform file init of: [${File}] as non root user!"
else
dir="$( dirname ${File})"
if [ ! -d ${dir} ]