Current Path : /compat/linux/proc/68247/root/etc/rc.d/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/etc/rc.d/apmd |
#!/bin/sh # # $FreeBSD: release/9.1.0/etc/rc.d/apmd 231792 2012-02-15 22:59:15Z dougb $ # # PROVIDE: apmd # REQUIRE: DAEMON apm # BEFORE: LOGIN # KEYWORD: nojail shutdown . /etc/rc.subr name="apmd" rcvar="apmd_enable" command="/usr/sbin/${name}" start_precmd="apmd_prestart" apmd_prestart() { case `${SYSCTL_N} hw.machine_arch` in i386) force_depend apm || return 1 # Warn user about acpi apm compatibility support which # does not work with apmd. if [ ! -e /dev/apmctl ]; then warn "/dev/apmctl not found; kernel is missing apm(4)" fi ;; *) return 1 ;; esac } load_rc_config $name run_rc_command "$1"