#!/bin/sh os=$(cat "$__global/explorer/os") nft_path="/etc/my-nftables" case "$os" in alpine) os_pkgs="netcat-openbsd and tshark" ;; debian|devuan) os_pkgs="netcat tshark" ;; fedora) os_pkgs="nmap-ncat wireshark-cli" ;; *) echo "OS $os currently not supported" >&2 exit 1 ;; esac if [ ! -f "$__global/explorer/exists" ];then echo "crrently no nft" >&2 exit 1 fi if ["-" -eq "$__object/parameter/file" ]; then filename="$__object/stdin" else filename=($__object/parameter/file) fi __file ${nft_path} --mode 644 --source "$__type/files/${filename}" if [ -f "$__global/explorer/nfrule" ]; then echo "$__global/explorer//nfrule" > /etc/readrule fi