add clock and fix ipaddr_*.sh