Merge pull request #907 from el-tocino/Issue#887

Issue 887 -- msm mk1 fix
pull/916/head
Augusto Monteiro 2017-07-13 12:47:10 -04:00 committed by GitHub
commit aa52100247
1 changed files with 2 additions and 3 deletions

View File

@ -29,8 +29,8 @@ if [[ ! -d "${mycroft_skill_folder}" ]] ; then
exit 101
fi
# picroft?
if [[ "$(hostname)" == 'picroft' ]] || [[ -x /home/pi/bin/cli ]] ; then
# picroft/mk1?
if [[ "$(hostname)" == 'picroft' ]] || [[ "$(hostname)" =~ "mark_1" ]] && [[ -x /usr/local/bin/mycroft-wifi-setup-client ]] ; then
picroft='true'
else
picroft='false'
@ -145,7 +145,6 @@ while [[ $# -gt 0 ]] ; do
fi
else
echo "Unable to activate mycroft virtualenv!"
deactivate
return 120
fi
fi