On Fri, 21 Jun 2002 23:25:15 -0700 Mike Makonnen <[EMAIL PROTECTED]> wrote:
> I don't know how I missed /etc/rc.i386 when I was doing the porting. > I'll have a chance to work on it Sunday, unless someone else beats me > to it. > Well, here it is. Let me know how goes it. Cheers, Mike Makonnen. Index: etc/rc.d/apm =================================================================== RCS file: etc/rc.d/apm diff -N etc/rc.d/apm --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ etc/rc.d/apm 24 Jun 2002 19:53:06 -0000 @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD: src/etc/rc.d/apmd,v 1.2 2002/06/13 22:14:36 gordon Exp $ +# + +# PROVIDE: apm +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD + +. /etc/rc.subr + +name="apm" +rcvar=`set_rcvar` +start_precmd="apm_precmd" +command="/usr/sbin/${name}" +command_args="-e enable" + +apm_precmd() +{ + case `${SYSCTL_N} hw.machine_arch` in + i386) + return 0 + ;; + esac + return 1 +} + +load_rc_config $name +run_rc_command "$1" Index: etc/rc.d/apmd =================================================================== RCS file: /home/ncvs/src/etc/rc.d/apmd,v retrieving revision 1.2 diff -u -r1.2 apmd --- etc/rc.d/apmd 13 Jun 2002 22:14:36 -0000 1.2 +++ etc/rc.d/apmd 24 Jun 2002 19:54:30 -0000 @@ -5,14 +5,37 @@ # # PROVIDE: apmd -# REQUIRE: DAEMON +# REQUIRE: DAEMON apm # BEFORE: LOGIN +# KEYWORD: FreeBSD NetBSD . /etc/rc.subr name="apmd" -rcvar=$name +rcvar=`set_rcvar` command="/usr/sbin/${name}" + +case `${CMD_OSTYPE}` in +FreeBSD) + start_precmd="apmd_prestart" + ;; +esac + +apmd_prestart() +{ + case `${SYSCTL_N} hw.machine_arch` in + i386) + ;; + *) + return 1 + ;; + esac + + # Don't start if apm is already running + /etc/rc.d/apm forcestatus 1>/dev/null && return 1 + + return 0 +} load_rc_config $name run_rc_command "$1" To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message