Added anti-redefinition headers to library scripts.
This commit is contained in:
parent
e544afc674
commit
39afb4c8b7
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ArrayUtilsVersion="1.0"
|
if [ "$ArrayUtilsVersion" ]; then return 0; fi
|
||||||
|
readonly ArrayUtilsVersion="1.0"
|
||||||
|
|
||||||
# Due to the fact we're passing arrays via indirection,
|
# Due to the fact we're passing arrays via indirection,
|
||||||
# we've got to mangle variable names used within array
|
# we've got to mangle variable names used within array
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SandboxUtilsVersion="1.0"
|
if [ "$ColorUtilsVersion" ]; then return 0; fi
|
||||||
|
readonly ColorUtilsVersion="1.0"
|
||||||
|
|
||||||
################################# < Shell Color Codes > ################################
|
################################# < Shell Color Codes > ################################
|
||||||
readonly CRed="\e[1;31m"
|
readonly CRed="\e[1;31m"
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$FormatUtilsVersion" ]; then return 0; fi
|
||||||
|
readonly FormatUtilsVersion="1.0"
|
||||||
|
|
||||||
FormatTabLength=8
|
FormatTabLength=8
|
||||||
FormatValidSpecifiers='%([+-]?([0-9]+|\*)?(\.([0-9]+|\*))?)?[bqdiouxXfeEgGcsnaA]'
|
FormatValidSpecifiers='%([+-]?([0-9]+|\*)?(\.([0-9]+|\*))?)?[bqdiouxXfeEgGcsnaA]'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
HashUtilsVersion="1.0"
|
if [ "$HashUtilsVersion" ]; then return 0; fi
|
||||||
|
readonly HashUtilsVersion="1.0"
|
||||||
|
|
||||||
HashOutputDevice="/dev/stdout"
|
HashOutputDevice="/dev/stdout"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
IOUtilsVersion="1.0"
|
if [ "$IOUtilsVersion" ]; then return 0; fi
|
||||||
|
readonly IOUtilsVersion="1.0"
|
||||||
|
|
||||||
IOUtilsHeader="[x] ================================ [x]"
|
IOUtilsHeader="[x] ================================ [x]"
|
||||||
IOUtilsQueryMark="[-] "
|
IOUtilsQueryMark="[-] "
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$InterfaceUtilsVersion" ]; then return 0; fi
|
||||||
|
readonly InterfaceUtilsVersion="1.0"
|
||||||
|
|
||||||
# The methods used in this script are taken from airmon-ng.
|
# The methods used in this script are taken from airmon-ng.
|
||||||
# This is all thanks for the airmon-ng authors, thanks guys.
|
# This is all thanks for the airmon-ng authors, thanks guys.
|
||||||
|
|
||||||
InterfaceUtilsOutputDevice="/dev/stdout"
|
InterfaceUtilsOutputDevice="/dev/stdout"
|
||||||
|
|
||||||
if [ -d /sys/bus/usb ] # && hash lsusb
|
if [ -d /sys/bus/usb ] # && hash lsusb
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SandboxUtilsVersion="1.0"
|
if [ "$SandboxUtilsVersion" ]; then return 0; fi
|
||||||
|
readonly SandboxUtilsVersion="1.0"
|
||||||
|
|
||||||
SandboxWorkspacePath="/tmp/sandbox"
|
SandboxWorkspacePath="/tmp/sandbox"
|
||||||
SandboxOutputDevice="/dev/stdout"
|
SandboxOutputDevice="/dev/stdout"
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$APServiceVersion" ]; then return 0; fi
|
||||||
|
readonly APServiceVersion="1.0"
|
||||||
|
|
||||||
VIGW="at0"
|
VIGW="at0"
|
||||||
VIAP=$WIAccessPoint
|
VIAP=$WIAccessPoint
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$APServiceVersion" ]; then return 0; fi
|
||||||
|
readonly APServiceVersion="1.0"
|
||||||
|
|
||||||
VIGW=$WIAccessPoint
|
VIGW=$WIAccessPoint
|
||||||
VIAP=$WIAccessPoint
|
VIAP=$WIAccessPoint
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#if [ "$InstallerUtilsVersion" ]; then return 0; fi
|
if [ "$InstallerUtilsVersion" ]; then return 0; fi
|
||||||
# readonly InstallerUtilsVersion="1.0"
|
readonly InstallerUtilsVersion="1.0"
|
||||||
|
|
||||||
InstallerUtilsWorkspacePath="/tmp/verspace"
|
InstallerUtilsWorkspacePath="/tmp/verspace"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue