You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
557 B
23 lines
557 B
#!/bin/sh
|
|
|
|
#move to script directory so all relative paths work
|
|
cd "$(dirname "$0")"
|
|
|
|
#includes
|
|
. ./config.sh
|
|
. ./colors.sh
|
|
. ./environment.sh
|
|
|
|
#add sngrep
|
|
if [ ."$cpu_architecture" = ."arm" ]; then
|
|
#source install
|
|
apt-get install -y git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev
|
|
cd /usr/src && git clone https://github.com/irontec/sngrep
|
|
cd /usr/src/sngrep && ./bootstrap.sh
|
|
cd /usr/src/sngrep && ./configure
|
|
cd /usr/src/sngrep && make install
|
|
else
|
|
#package install
|
|
apt-get update
|
|
apt-get install -y sngrep
|
|
fi
|