mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
reporting: more name clearing for safety
See: https://github.com/opnsense/src/commit/499f60b10b6
This commit is contained in:
parent
55dacd0f84
commit
cc297e741b
@ -91,8 +91,9 @@ netflow_setup_interface()
|
||||
conf="11"
|
||||
echo "setup $interface"
|
||||
fi;
|
||||
# avoid dots [.] in interface names to avoid issues with ngctl
|
||||
interface=`echo $interface | sed 's/\./_/g'`
|
||||
|
||||
# prevent using special netgraph characters in interface names
|
||||
interface=$(echo $interface | sed 's/[.:]/_/g')
|
||||
|
||||
# remove earlier setup (if any)
|
||||
/usr/sbin/ngctl shutdown netflow_$interface: >/dev/null 2>&1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user