|
@@ -7,7 +7,7 @@ fi |
|
|
|
|
|
|
|
|
command_exists() { |
|
|
command_exists() { |
|
|
if ! command -v "$1" &> /dev/null; then |
|
|
if ! command -v "$1" &> /dev/null; then |
|
|
echo "Required command not found: $1" |
|
|
|
|
|
|
|
|
log "Required command not found: $1" "ERROR" |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
@@ -21,6 +21,12 @@ command_exists "socat" |
|
|
|
|
|
|
|
|
IP=$(ip route | grep "link src" | awk {'print $NF'}) |
|
|
IP=$(ip route | grep "link src" | awk {'print $NF'}) |
|
|
|
|
|
|
|
|
|
|
|
if pgrep "rtl_fm" > /dev/null |
|
|
|
|
|
then |
|
|
|
|
|
log "There is an existing rtl_fm instance running, I quit" "ERROR" |
|
|
|
|
|
exit 1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
echo "$(tput setaf 2) |
|
|
echo "$(tput setaf 2) |
|
|
The server is in testing mode tuned to $1 Mhz! |
|
|
The server is in testing mode tuned to $1 Mhz! |
|
|
Open a terminal in your computer and paste: |
|
|
Open a terminal in your computer and paste: |
|
|