starting to adapt init scrit for cgminer