Skip to content

Commit

Permalink
Merge pull request OpenHD#10 from HD-Fpv/refactor
Browse files Browse the repository at this point in the history
Refactor Names to reflect OpenHD
  • Loading branch information
pilotnbr1 authored Jan 28, 2019
2 parents 82bc77c + 303f48e commit 00e61b5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion RemoteSettings/RemoteSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from time import sleep
import threading

WFBCSettingsFile = "/boot/wifibroadcast-1.txt"
WFBCSettingsFile = "/boot/openhd-settings-1.txt"
OSDSettingsFile = "/boot/osdconfig.txt"
JoystickSettingsFile = "/boot/joyconfig.txt"
IPAndroidClient = ""
Expand Down
3 changes: 1 addition & 2 deletions RemoteSettings/RemoteSettingsAir.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from time import sleep


WFBCSettingsFile = "/boot/wifibroadcast-1.txt"
WFBCSettingsFile = "/boot/openhd-settings-1.txt"
OSDSettingsFile = "/boot/osdconfig.txt"
JoystickSettingsFile = "/boot/joyconfig.txt"
IsTerminateRemoteSettingsPath = "/tmp/IsTerminateRemoteSettingsPath.txt"
Expand All @@ -37,7 +37,6 @@


wbc_settings_blacklist = [""]

def replace_OSD_config(LookFor, NewLine):
os.system('mount -o remount,rw /boot')
#example: #define COPTER true
Expand Down
4 changes: 2 additions & 2 deletions RemoteSettings/RemoteSettingsWFBC_UDP_Air.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ if [ -e "/tmp/settings.sh" ]; then
if [ "$?" == "0" ]; then
source /tmp/settings.sh
else
echo "ERROR: wifobroadcast config file contains syntax error(s)!"
echo "ERROR: openhd settings file contains syntax error(s)!"
collect_errorlog
sleep 365d
fi else
echo "ERROR: wifobroadcast config file not found!"
echo "ERROR: openhd settings file not found!"
collect_errorlog
sleep 365d
fi
Expand Down
4 changes: 2 additions & 2 deletions wifibroadcast-scripts/global_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ function read_config_file {
if [ "$?" == "0" ]; then
source /tmp/settings.sh
else
echo "ERROR: wifibroadcast config file contains syntax error(s)!"
echo "ERROR: openhd-settings file contains syntax error(s)!"
collect_errorlog
sleep 365d
fi
else
echo "ERROR: wifibroadcast config file not found!"
echo "ERROR: openhd-settings file not found!"
collect_errorlog
sleep 365d
fi
Expand Down
14 changes: 7 additions & 7 deletions wifibroadcast-scripts/main.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# The main entrypoint for the Wifibroadcast system.
# The main entrypoint for the OpendHD system.
# Based heavily on the EZ-Wifibroadcast .profile script.
###############################################################################

Expand Down Expand Up @@ -108,9 +108,9 @@ case $TTY in
# sleep until everything else is loaded (atheros cards and usb flakyness ...)
sleep 6
if [ "$CAM" == "0" ]; then
EZHOSTNAME="wifibrdcast-rx"
EZHOSTNAME="openhd-GroundPi"
else
EZHOSTNAME="wifibrdcast-tx"
EZHOSTNAME="openhd-AirPi"
fi
# only configure ethernet network interface via DHCP if ethernet hotspot is disabled
if [ "$ETHERNET_HOTSPOT" == "N" ]; then
Expand Down Expand Up @@ -167,22 +167,22 @@ case $TTY in
/dev/tty12) # tty for local interactive login
echo
if [ "$CAM" == "0" ]; then
echo -n "Welcome to EZ-Wifibroadcast 1.6 (RX) - "
echo -n "Welcome to OpenHD"
read -p "Press <enter> to login"
killall osd
rw
else
echo -n "Welcome to EZ-Wifibroadcast 1.6 (TX) - "
echo -n "Welcome to OpenHD"
read -p "Press <enter> to login"
rw
fi
;;
*) # all other ttys used for interactive login
if [ "$CAM" == "0" ]; then
echo "Welcome to EZ-Wifibroadcast 1.6 (RX) - type 'ro' to switch filesystems back to read-only"
echo "Welcome to OpenHD (GroundPi) - type 'ro' to switch filesystems back to read-only"
rw
else
echo "Welcome to EZ-Wifibroadcast 1.6 (TX) - type 'ro' to switch filesystems back to read-only"
echo "Welcome to OpenHD (AirPi) - type 'ro' to switch filesystems back to read-only"
rw
fi
;;
Expand Down

0 comments on commit 00e61b5

Please sign in to comment.