From ffefd50ada13360d714ee464644f4fe8a725b24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Tue, 16 Jan 2001 20:05:05 +0000 Subject: [PATCH] Add a sysvipc_enable variable that causes the SysV IPC modules to be loaded. Reviewed by: dougb --- etc/defaults/rc.conf | 1 + etc/rc | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index 79d52ce215a0..b75774b8a829 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -308,6 +308,7 @@ check_quotas="YES" # Check quotas on startup (or NO). accounting_enable="NO" # Turn on process accounting (or NO). ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO). ibcs2_loaders="NO" # List of additional Ibcs2 loaders (or NO). +sysvipc_enable="NO" # Load System V IPC primitives at startup (or NO). linux_enable="NO" # Linux binary compatibility loaded at startup (or NO). svr4_enable="NO" # SysVR4 emulation loaded at startup (or NO). osf1_enable="NO" # Alpha OSF/1 emulation loaded at startup (or NO). diff --git a/etc/rc b/etc/rc index 080f24618f46..06d561517686 100644 --- a/etc/rc +++ b/etc/rc @@ -646,6 +646,16 @@ fi echo -n 'Additional ABI support:' +# Load the SysV IPC API if requested. +case ${sysvipc_enable} in +[Yy][Ee][Ss]) + echo -n ' sysvipc' + kldload sysvmsg >/dev/null 2>&1 + kldload sysvsem >/dev/null 2>&1 + kldload sysvshm >/dev/null 2>&1 + ;; +esac + # Start the Linux binary compatibility if requested. # case ${linux_enable} in