centos6 script rewite