Skip to content

Commit

Permalink
fix var checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 4, 2023
1 parent 1f5dbcb commit 1def69b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ CheckDevice()
echo "wifi device available"
if (rfkill list wifi -rno HARD,SOFT | grep -i "unblocked.*unblocked") >/dev/null 2>&1 ; then
local wifidev_up=$(ip link show "$wifidev" up)
if [ -z $"wifidev_up" ]; then
if [ -z "$wifidev_up" ]; then
echo "wifi is down. setting up"
ip link set dev "$wifidev" up
sleep 2
fi
Expand Down
4 changes: 2 additions & 2 deletions scripts/playout_controls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ case $COMMAND in
enablewifi)
if [ "${DEBUG_playout_controls_sh}" == "TRUE" ]; then echo " ${COMMAND}" >> ${PATHDATA}/../logs/debug.log; fi
rfkill unblock wifi
if [ -f $"autohotspot_script" ]; then sudo $"autohotspot_script"; fi
if [ -f "$autohotspot_script" ]; then sudo "$autohotspot_script"; fi
;;
disablewifi)
if [ "${DEBUG_playout_controls_sh}" == "TRUE" ]; then echo " ${COMMAND}" >> ${PATHDATA}/../logs/debug.log; fi
Expand All @@ -1033,7 +1033,7 @@ case $COMMAND in
if [ "${DEBUG_playout_controls_sh}" == "TRUE" ]; then echo " Wifi will now be activated" >> ${PATHDATA}/../logs/debug.log; fi
echo "Wifi will now be activated"
rfkill unblock wifi
if [ -f $"autohotspot_script" ]; then sudo $"autohotspot_script"; fi
if [ -f "$autohotspot_script" ]; then sudo "$autohotspot_script"; fi
fi
;;
randomcard)
Expand Down

0 comments on commit 1def69b

Please sign in to comment.