#!/bin/sh # PROVIDE: ethidled # REQUIRE: NETWORKING DAEMON snmpd # BEFORE: LOGIN # KEYWORD: shutdown #ethidled_enable=YES ethidled_prefix="/usr/local" . /etc/rc.subr name="ethidled" command_interpreter="/bin/sh" rcvar=`set_rcvar` load_rc_config $name command="${ethidled_cmdpath-/usr/local/bin}/ethidle" command_args="${ethidled_args}" required_dirs="/var/run" pidfile="/var/run/$name.pid" start_precmd="ethidled_prestart" stop_postcmd="ethidled_poststop" ethidled_prestart() { if [ ! -d /var/run ]; then mkdir -p /var/run fi } ethidled_poststop() { rm -f $pidfile } run_rc_command "$1"