1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Check if omr-bypass is installed on schedule before trying to set settings

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-05-03 15:43:20 +02:00
parent 65a10f0910
commit 08e9d8b4ff

View file

@ -1,5 +1,6 @@
#!/bin/sh
[ ! -e /etc/init.d/omr-bypass ] && exit 0
bypassipvs4s=$(ipset -o save list omr_dst_bypass_srv_vpn1_4 2>/dev/null)
[ -z "$bypassipvs4s" ] && {
ipv4set=$(nft -j list set inet fw4 "omr_dst_bypass_srv_vpn1_4" 2>/dev/null)