Index: scripts/run.sh =================================================================== diff -u -r0629dfe6bcc3e85047319284fa4c534efbf58594 -rd71990c79c75c613d781890c6f77505d409d6c64 --- scripts/run.sh (.../run.sh) (revision 0629dfe6bcc3e85047319284fa4c534efbf58594) +++ scripts/run.sh (.../run.sh) (revision d71990c79c75c613d781890c6f77505d409d6c64) @@ -73,21 +73,21 @@ # setup bluetooth mkdir -p "$HOME/settings" # Wait for drivers to initialize. TODO: Investigate what is needed to reduce/remove this -sleep 5 +sleep 7 killall connmand -/usr/share/silex-uart/silex-uart.sh start +/usr/share/silex-uart/silex-uart.sh start > $HOME/filesystem.out 2> $HOME/filesystem.err hciconfig hci0 up +cd $HOME + # setup wifi -killall wpa_supplicant -./wifi_reset_adapter.sh -if [[ -f "/etc/network/interfaces" && -f "/etc/wpa_supplicant.conf" ]]; then - $HOME/wifi_start_wpa_supplicant.sh wlan0 /etc/wpa_supplicant.conf - if [[ -f "$HOME/AUTO_IP" ]]; then - ./wifi_request_auto_assigned_ip.sh wlan0 & disown +killall wpa_supplicant > $HOME/filesystem.out 2> $HOME/filesystem.err +if [[ -f "/etc/wpa_supplicant.conf" ]]; then + ./wifi_start_wpa_supplicant.sh wlan0 /etc/wpa_supplicant.conf > $HOME/filesystem.out 2> $HOME/filesystem.err + if [[ -f "$HOME/AUTO_IP" ]]; then + ./wifi_request_auto_assigned_ip.sh wlan0 & disown > $HOME/filesystem.out 2> $HOME/filesystem.err fi fi #launching denali application, disable keep-alive $HOME/denali -u 2>> $HOME/filesystem.err & -