1
0
mirror of https://github.com/byReqz/conn.git synced 2024-11-22 09:01:15 +00:00

prepare skeleton

This commit is contained in:
Nils 2021-11-28 00:14:38 +01:00
parent cb324fe66c
commit 260bd37608
Signed by: byreqz
GPG Key ID: 396A62D7D436749E

46
conn.sh Executable file
View File

@ -0,0 +1,46 @@
#!/bin/bash
# license: gpl-3
show_help="conn: a quick and dirty server availability check
usage:
"$0" <args> [IP(s)/hostname(s)]
arguments:
-h / --help show help page (this)
-6 / --force-ipv6 force ipv6 portscanning (also forces portscanning)
-4 / --force-ipv4 force ipv4 portscanning (also forces portscanning)
-y / --yes portscan without asking
-n / --no dont portscan
-w / --wait wait for active connection
-u / --update update the script
-f / --fast disable os check
-s / --simple simplyfy output"
show_notfound="[error] argument not found
available arguments:
-h / --help show help page (this)
-6 / --force-ipv6 force ipv6 portscanning (also forces portscanning)
-4 / --force-ipv4 force ipv4 portscanning (also forces portscanning)
-y / --yes portscan without asking
-n / --no dont portscan
-w / --wait wait for active connection
-u / --update update the script
-f / --fast disable os check
-s / --simple simplify output"
function prepare {
true
}
function main {
true
}
if [[ -n $1 ]];then
prepare
main
else
echo "$show_help"
fi