[cvs-nhc98] Register a script for hat-port, and modify script for hat-