xinglp wrote:
> 在 2011年9月26日 上午4:56,Bruce Dubbs <bruce.du...@gmail.com> 
> 写道:
>> xinglp wrote:
>>> /etc/init.d/modules line 38
>>>
>>> [ $(egrep -qv '^($|#)' /etc/sysconfig/modules) ] || exit 0
>>>
>>> it always does a 'exit 0'
>> Yes, it looks like it should be:
>>
>> [ ! $(egrep -qv '^($|#)' /etc/sysconfig/modules) ] || exit 0
>>
>> Does that work for you?

> It does't.
> I think it should be
> egrep -qv '^($|#)' /etc/sysconfig/modules || exit 0

OK, it is fixed.  Sometimes the nuances of bash are tricky.  I always 
like to learn new things though.  Thanks.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to