From 3c81343da60d7894879c1adc4af63115d63fb6d4 Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Sun, 22 Jun 2008 16:19:50 +0000 Subject: [PATCH] Do not print anything unless at least one of the abi emulators is enabled. --- etc/rc.d/abi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/abi b/etc/rc.d/abi index d2d3c31f604a..3765b058114f 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