mirror of
https://github.com/bol-van/zapret.git
synced 2025-06-30 02:31:16 +00:00
install_bin: display help text if no bins found
This commit is contained in:
parent
d00d341505
commit
ef4f8a2b86
@ -521,3 +521,5 @@ nfqws: use wireless ext in case nl80211 does not return SSID
|
|||||||
v71.2
|
v71.2
|
||||||
|
|
||||||
nfqws: apply udp desync to replayed packets with non-zero reasm offset (except fake)
|
nfqws: apply udp desync to replayed packets with non-zero reasm offset (except fake)
|
||||||
|
blockcheck: display curl version and kernel version
|
||||||
|
install_bin: stop if no binaries found. display help text.
|
||||||
|
@ -127,8 +127,42 @@ ccp()
|
|||||||
#cp -f "../$BINS/$1" "$ZAPRET_BASE/$2" && echo copying : "../$BINS/$1" =\> "$ZAPRET_BASE/$2"
|
#cp -f "../$BINS/$1" "$ZAPRET_BASE/$2" && echo copying : "../$BINS/$1" =\> "$ZAPRET_BASE/$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
UNAME=$(uname)
|
UNAME=$(uname)
|
||||||
|
|
||||||
|
if [ ! -d "$BINDIR" ] || ! dir_is_not_empty "$BINDIR" ]; then
|
||||||
|
echo "no binaries found"
|
||||||
|
case $UNAME in
|
||||||
|
Linux)
|
||||||
|
echo "you need to download release from github or build binaries from source"
|
||||||
|
echo "building from source requires debian/ubuntu packages : make gcc zlib1g-dev libcap-dev libnetfilter-queue-dev libmnl-dev libsystemd-dev"
|
||||||
|
echo "on distributions with other package manager find dev package analogs"
|
||||||
|
echo "to compile on systems with systemd : make systemd"
|
||||||
|
echo "to compile on other systems : make"
|
||||||
|
;;
|
||||||
|
Darwin)
|
||||||
|
echo "you need to download release from github or build binaries from source"
|
||||||
|
echo "to compile : make mac"
|
||||||
|
;;
|
||||||
|
FreeBSD)
|
||||||
|
echo "you need to download release from github or build binaries from source"
|
||||||
|
echo "to compile : make"
|
||||||
|
;;
|
||||||
|
OpenBSD)
|
||||||
|
echo "to compile : make bsd"
|
||||||
|
;;
|
||||||
|
CYGWIN*)
|
||||||
|
echo "you need to download release from github or build binaries from source"
|
||||||
|
echo "to compile : read docs"
|
||||||
|
echo "to make things easier use zapret-win-bundle"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "to compile : make"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
unset PKTWS
|
unset PKTWS
|
||||||
case $UNAME in
|
case $UNAME in
|
||||||
Linux)
|
Linux)
|
||||||
|
Loading…
Reference in New Issue
Block a user