[misc] update ifconfig and sha256sum usage in hwgen