mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Huh? When did the etc bits for amd64 get added?
Make sure they're ported over to rc.d. While I'm at it correct a logic mistake in rc.d/apmd. Approved by: markm (mentor)(implicit)
This commit is contained in:
parent
c9c29450f5
commit
7b579aff4c
3 changed files with 5 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ command_args="-e enable"
|
|||
apm_precmd()
|
||||
{
|
||||
case `${SYSCTL_N} hw.machine_arch` in
|
||||
i386)
|
||||
i386|amd64)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@ esac
|
|||
apmd_prestart()
|
||||
{
|
||||
case `${SYSCTL_N} hw.machine_arch` in
|
||||
i386)
|
||||
# Don't start if apm is already running
|
||||
/etc/rc.d/apm forcestatus > /dev/null && return 1
|
||||
i386|amd64)
|
||||
# Start apm if it is not already running
|
||||
/etc/rc.d/apm forcestatus > /dev/null || /etc/rc.d/apm forcestart
|
||||
;;
|
||||
*)
|
||||
return 1
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ ibcs2_compat()
|
|||
_arch=`${SYSCTL_N} hw.machine`
|
||||
echo -n "Initial $_arch initialization:"
|
||||
case $_arch in
|
||||
i386)
|
||||
i386|amd64)
|
||||
ibcs2_compat
|
||||
;;
|
||||
alpha)
|
||||
|
|
|
|||
Loading…
Reference in a new issue