to, 2006-05-18 kello 11:00 +0200, Stefan Hornburg (Racke) kirjoitti:
> Lars Wirzenius wrote:
> >     if which invoke-rc.d >/dev/null 2>&1; then
> >             invoke-rc.d package <action>
> >     else
> >             /etc/init.d/package <action>
> >     fi
...
> How should the command sequence look like to replace this shell fragment:
> 
> if [ -x /etc/init.d/interchange ] ; then
>       /etc/init.d/interchange stop
> fi
> 
> (this is called from interchange-ui's maintainer scripts, not from 
> interchange).

Replacing the line inside the if with the five line stanza from policy
should do the trick, I think.

-- 
"Quack, damn you!" – Jamie Hyneman


Reply via email to