- 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:
@@ -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} ]
|
||||
|
||||
Reference in New Issue
Block a user