Or SSH in once the hotspot is up … and use the existing functionality to inhibit suspend: Login via SSH && suspend