[Gelistirici] playground/memre/scratchbox2/files - enhancement for sbox2 init

Fatih Aşıcı fatih at pardus.org.tr
31 Ara 2010 Cum 11:38:48 EET


On Friday 31 December 2010 11:16:50 Mehmet Emre Atasever wrote:
> Author: memre
> Date: Fri Dec 31 11:16:50 2010
> New Revision: 108383
> 
> Modified:
>    playground/memre/scratchbox2/files/scratchbox2
> Log:
> enhancement for sbox2 init
> 
> ---
>  scratchbox2 |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> Modified: playground/memre/scratchbox2/files/scratchbox2
> =================================================================
> --- playground/memre/scratchbox2/files/scratchbox2	(original)
> +++ playground/memre/scratchbox2/files/scratchbox2	Fri Dec 31 11:16:50 
2010
> @@ -1,8 +1,6 @@
>  # scratchbox initialization
> 
> -if [ -z "`lsmod | grep binfmt`" ]; then
> -    modprobe binfmt_misc
> -fi
> +[ -z "`grep binfmt_misc /proc/modules`" ] && modprobe binfmt_misc

Bunun yerine,

grep -qw binfmt_misc /proc/modules || modprobe binfmt_misc

yazabilirsin ;)
-------------- sonraki bölüm --------------
A non-text attachment was scrubbed...
Name: kullan?lam?yor
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://liste.pardus.org.tr/gelistirici/attachments/20101231/4e086022/attachment-0002.pgp>


Gelistirici mesaj listesiyle ilgili daha fazla bilgi