From 691098c479438a8746f77fca79e1de902785f4db Mon Sep 17 00:00:00 2001 From: Benedikt Boehm Date: Sun, 20 Sep 2009 08:32:05 +0000 Subject: fix #285449 --- 2.2/init/apache2.initd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2.2/init/apache2.initd b/2.2/init/apache2.initd index b6e001e..0f6fa0a 100755 --- a/2.2/init/apache2.initd +++ b/2.2/init/apache2.initd @@ -137,7 +137,7 @@ fullstatus() { if ! service_started "${SVCNAME}"; then eerror "${SVCNAME} not started" - elif ! type -p ${LYNX} 2>&1 >/dev/null; then + elif ! type -p $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then eerror "lynx not found! you need to emerge www-client/lynx" else ${LYNX} ${STATUSURL} @@ -157,7 +157,7 @@ configdump() { if ! service_started "${SVCNAME}"; then eerror "${SVCNAME} not started" - elif ! type -p ${LYNX} 2>&1 >/dev/null; then + elif ! type -p $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then eerror "lynx not found! you need to emerge www-client/lynx" else echo "${APACHE2} started with '${APACHE2_OPTS}'" -- cgit v1.2.3-65-gdbad