fix system commands and detect hotspot status