Finish code for script for freebsd