add device check for ubuntu