This commit is contained in:
samialazar 2020-05-15 17:01:31 +02:00
parent 4df8adadb0
commit 7b39b906fb
9 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,30 @@
os="$(cat "$__global/explorer/os")"
case "$os" in
fedora)
__package nmap-ncat --state present
__package wireshark-cli --state present
;;
debian)
__package netcat --state present
__package tshark --state present
alpine)
__package netcat-openbsd --state present
__package tshark --state present
;;
*)
echo "Don't know how to manage packages on: $os" >&2
exit 1
;;
esac
__package socat --state present __package sipcalc --state present __package sudo --state present

View file

@ -0,0 +1 @@
--with-x

View file

@ -0,0 +1,24 @@
# required parameter
#servername="$(cat "$__object/parameter/servername")"
# optional parameter
if [ -f "$__object/parameter/optional" ]; then
logdirectory="$(cat "$__object/parameter/optional")"
fi
# optional parameter with predefined default
#loglevel="$(cat "$__object/parameter/loglevel")"
# boolean parameter
#if [ -f "$__object/parameter/use_ssl" ]; then
# file exists -> True
# do some fancy ssl stuff
#fi
# parameter with multiple values
#if [ -f "$__object/parameter/server_colorful" ]; then
# for alias in $(cat "$__object/parameter/server_alias"); do
# echo $alias > /some/where/useful
#done
#fi

View file

@ -0,0 +1 @@
colorful

View file

@ -0,0 +1,9 @@
if [ -f "$__object/parameter/name" ]; then
name="$(cat "$__object/parameter/name")"
else
name="$__object_id"
fi
# Expect dpkg failing, if package is not known / installed
dpkg -s "$name" 2>/dev/null || exit 0

View file

@ -0,0 +1 @@
file