summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/abi
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2008-06-22 16:19:50 +0000
committermtm <mtm@FreeBSD.org>2008-06-22 16:19:50 +0000
commit37724647ed7c20dedd45bb70d345e0cf59816df7 (patch)
treeabdf11a39dca3d79756406188a17179ca855db02 /etc/rc.d/abi
parentad35ae912b09fbe4742f3fb8d179971db60795d6 (diff)
downloadFreeBSD-src-37724647ed7c20dedd45bb70d345e0cf59816df7.zip
FreeBSD-src-37724647ed7c20dedd45bb70d345e0cf59816df7.tar.gz
Do not print anything unless at least one of the abi emulators is
enabled.
Diffstat (limited to 'etc/rc.d/abi')
-rw-r--r--etc/rc.d/abi10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/rc.d/abi b/etc/rc.d/abi
index d2d3c31..3765b05 100644
--- a/etc/rc.d/abi
+++ b/etc/rc.d/abi
@@ -45,13 +45,19 @@ svr4_start()
abi_start()
{
- echo -n 'Additional ABI support:'
+ local _echostop
+
+ _echostop=
+ if checkyesno sysvipc_enable || checkyesno linux_enable || checkyesno svr4_enable; then
+ echo -n 'Additional ABI support:'
+ _echostop=yes
+ fi
checkyesno sysvipc_enable && sysv_start
checkyesno linux_enable && linux_start
checkyesno svr4_enable && svr4_start
- echo '.'
+ [ -n "${_echostop}" ] && echo '.'
}
load_rc_config $name
OpenPOWER on IntegriCloud