cvs commit: ports/sysutils/ataidle Makefile
ports/sysutils/ataidle/files ataidle.in
Andrew Pantyukhin
sat at FreeBSD.org
Thu Jun 14 06:48:08 UTC 2007
On 6/14/07, Martin Wilke <miwi at freebsd.org> wrote:
> miwi 2007-06-14 06:07:23 UTC
>
> FreeBSD ports repository
>
> Modified files:
> sysutils/ataidle Makefile
> Added files:
> sysutils/ataidle/files ataidle.in
> Log:
> - Add rc.d script
>
> PR: 113115
> Submitted by: Bruce Cran <bruce at cran.org.uk> (maintainer)
>
> Revision Changes Path
> 1.10 +1 -0 ports/sysutils/ataidle/Makefile
> 1.1 +37 -0 ports/sysutils/ataidle/files/ataidle.in (new)
> _______________________________________________
> +name="ataidle"
> +rcvar=${name}_enable
> +command="%%LOCALBASE%%/sbin/${name}"
I assume you know how LOCALBASE differs from PREFIX
and which of the two should have been used here.
> +load_rc_config $name
> +
> +start_cmd="start_cmd"
> +start_cmd()
> +{
> +if [ -n "${ataidle_device}" ]; then
> +for i in ${ataidle_device}; do
> +eval ataidle_args=\$ataidle_${i}
> +${command} ${ataidle_args}
> +done
> +fi
> +
> +}
What's with the indentation? Also there's no
newline at end of file, which would be fixed
if you opened it in almost any editor and saved
without changes.
More information about the cvs-all
mailing list