set -e rcvers() { # determine if we have "old" or "new" (rcorder integration) scheme # for %%PREFIX%%/etc/rc.d/* files if test $1 -ge 700007 || test $1 -lt 700000 -a $1 -ge 600101 ; then echo 2 else echo 1 fi } if [ "$2" = INSTALL ] ; then # check if the base system is new enough for us, # which should only matter for package installs. buildrc=$(rcvers %%OSVERSION%%) execrc=$(rcvers $(sysctl -n kern.osreldate) ) if test $buildrc -gt $execrc ; then cat <