Skip to content

Commit

Permalink
minor update for display of browser url
Browse files Browse the repository at this point in the history
  • Loading branch information
pageauc committed Jul 8, 2018
1 parent d2bdb33 commit 05bee09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Binary file modified menubox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions menubox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ searchconfig="$DIR/$searchconfig"
filename_conf="work_config.txt"
filename_temp="work_temp.txt"

myip=$(ifconfig | grep 'inet ' | grep -v 127.0.0 | cut -d " " -f 12 | cut -d ":" -f 2 )
myport=$( grep "web_server_port" config.py | cut -d "=" -f 2 | cut -d "#" -f 1 | awk '{$1=$1};1' )

#------------------------------------------------------------------------------
function do_anykey ()
{
Expand Down Expand Up @@ -49,6 +46,8 @@ function init_status ()
WEB_2="webserver.py in background"
else
webserver_pid=$( pgrep -f webserver.py )
myip=$(ifconfig | grep 'inet ' | grep -v 127.0.0 | cut -d " " -f 12 | cut -d ":" -f 2 )
myport=$( grep "web_server_port" config.py | cut -d "=" -f 2 | cut -d "#" -f 1 | awk '{$1=$1};1' )
WEB_1="STOP"
WEB_2="webserver.py - PID is $webserver_pid http://$myip:$myport"
fi
Expand Down Expand Up @@ -684,8 +683,7 @@ function do_main_menu ()
cd $DIR
init_status
temp="$(/opt/vc/bin/vcgencmd measure_temp)"
myip=$(ifconfig | grep 'inet ' | grep -v 127.0.0 | cut -d " " -f 12 | cut -d ":" -f 2 )
myport=$( grep "web_server_port" config.py | cut -d "=" -f 2 | cut -d "#" -f 1 | awk '{$1=$1};1' )

cd $DIR
SELECTION=$(whiptail --title "Speed Camera Main Menu" \
--menu "Arrow/Enter Selects or Tab Key" 0 0 0 \
Expand Down

0 comments on commit 05bee09

Please sign in to comment.