#!/bin/sh ( cd etc/rc.d ; chmod 755 rc.dictd ) ### # Use rc.local to start dictd at boot. ### # if rc.dictd is executable, run it on startup run=`grep "sh /etc/rc.d/rc.dictd" etc/rc.d/rc.local` if [[ "${run}" == "" ]]; then cat << EOF >> etc/rc.d/rc.local #dictd server # To disable the dictd server, chmod rc.dictd to 644 if [ -x /etc/rc.d/rc.dictd ]; then sh /etc/rc.d/rc.dictd start fi EOF fi