rc script priority limitation

Gerard Beekmans gerard at linuxfromscratch.org
Tue Jul 31 11:04:43 PDT 2001


On Tue, Jul 31, 2001 at 12:51:38PM -0500, J. Jones wrote:
> 
> #!/bin/sh
> 
> string="/etc/rc.d/S88888888888888888888888888885fooooooo"
> eval `basename $string | sed \
>      's/^[S|K]\(.*[0-9]\)\(.*\)/stop=K\1\2; previous_start=S\1\2/'`
> 
> echo $stop
> echo $previous_start

I'd like to see good sorting too. Say we have

S50localhost
S100sysklogd
S5000named

how would we sort this properly (50, 100, 5000 and not 100, 50, 5000)? 

-- 
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-
-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message



More information about the lfs-dev mailing list