Sngrep included recent Debian versions
This commit is contained in:
parent
7e0d874857
commit
a0ee735bdc
|
|
@ -8,9 +8,6 @@ cd "$(dirname "$0")"
|
||||||
. ./colors.sh
|
. ./colors.sh
|
||||||
. ./environment.sh
|
. ./environment.sh
|
||||||
|
|
||||||
#make sure keyrings directory exits
|
|
||||||
mkdir /etc/apt/keyrings
|
|
||||||
|
|
||||||
#add sngrep
|
#add sngrep
|
||||||
if [ ."$cpu_architecture" = ."arm" ]; then
|
if [ ."$cpu_architecture" = ."arm" ]; then
|
||||||
#source install
|
#source install
|
||||||
|
|
@ -21,8 +18,10 @@ if [ ."$cpu_architecture" = ."arm" ]; then
|
||||||
cd /usr/src/sngrep && make install
|
cd /usr/src/sngrep && make install
|
||||||
else
|
else
|
||||||
#package install
|
#package install
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/irontec.gpg] http://packages.irontec.com/debian $(lsb_release -cs) main" > /etc/apt/sources.list.d/sngrep.list
|
if [ ."$os_codename" = ."jessie" ]; then
|
||||||
wget http://packages.irontec.com/public.key -q -O - | gpg --dearmor -o /etc/apt/keyrings/irontec.gpg
|
echo "deb http://packages.irontec.com/debian $os_codename main" > /etc/apt/sources.list.d/sngrep.list
|
||||||
|
wget http://packages.irontec.com/public.key -q -O - | apt-key add -
|
||||||
|
fi
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y sngrep
|
apt-get install -y sngrep
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue