#!/bin/bash # run post_add scripts # pkg_dir=/var/lib/pkg ls -rt ${pkg_dir}/*.post_add | while read pa_file do source ${pa_file} rm ${pa_file} done rm -f $pkg_dir/*-serv.conf