From 78527ab87c0eb2de6632d03a451e58de549f816b Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Fri, 24 Jan 2020 04:20:49 -0500 Subject: [PATCH] Steno - BPF Config --- salt/pcap/files/compile_bpf.sh | 37 ++++++++++++++++++++++++++++++++++ salt/pcap/files/config | 4 ++-- salt/pcap/init.sls | 36 ++++++++++++++++++++++++++++++++- 3 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 salt/pcap/files/compile_bpf.sh diff --git a/salt/pcap/files/compile_bpf.sh b/salt/pcap/files/compile_bpf.sh new file mode 100644 index 000000000..44c5b8249 --- /dev/null +++ b/salt/pcap/files/compile_bpf.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +if [ "$#" -lt 2 ]; then + cat 1>&2 <