Commit 686bacab authored by Robert Schmidt's avatar Robert Schmidt Committed by Manish

Do not trap ^C in build_oai, and remove unused bash function

parent 08c06b96
...@@ -59,7 +59,6 @@ BUILD_ECLIPSE=0 ...@@ -59,7 +59,6 @@ BUILD_ECLIPSE=0
NR="False" NR="False"
OPTIONAL_LIBRARIES="telnetsrv enbscope uescope nrscope" OPTIONAL_LIBRARIES="telnetsrv enbscope uescope nrscope"
RU=0 RU=0
trap handle_ctrl_c INT
function print_help() { function print_help() {
echo_info " echo_info "
......
...@@ -967,23 +967,3 @@ do ...@@ -967,23 +967,3 @@ do
fi fi
done done
} }
# get from http://www.linuxjournal.com/content/validating-ip-address-bash-script
validate_ip() {
local ip=$1
local stat=1
if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
OIFS=$IFS
IFS='.'
ip=($ip)
IFS=$OIFS
[[ ${ip[0]} -le 255 && ${ip[1]} -le 255 \
&& ${ip[2]} -le 255 && ${ip[3]} -le 255 ]]
stat=$?
fi
return $stat
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment