mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Remove from luci packages some files that can work without luci interface
This commit is contained in:
parent
8369094924
commit
05a4db1523
35 changed files with 2616 additions and 8 deletions
10
openmptcprouter-api/files/bin/omr-routing-loop
Executable file
10
openmptcprouter-api/files/bin/omr-routing-loop
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
VPS=$1
|
||||
LANIP=$2
|
||||
INTF=$3
|
||||
|
||||
if [ -n "$(traceroute -q 1 -i ${INTF} -w 1 -n -m 5 ${VPS} | grep ${LANIP})" ]; then
|
||||
echo "detected"
|
||||
else
|
||||
echo "no loop"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue