IIRC, maybe os_dep module can do this job.