[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

LD_PRELOAD=<driver> versus /etc/modules ... <module>; was "using exec in a script"



From:	Liam O'Toole <liam.p.otoole@gmail.com>
Date:	Thu, 10 Mar 2011 20:03:52 +0000 (UTC)
> 	#!/bin/sh
> 	export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
> 	exec /usr/bin/skype

Works perfectly.  Thanks.

For sake of interest, another approach which failed was to list 
v4l1compat in /etc/modules and invoke /usr/bin/skype in ~/.config/auto*/skype* .

peter@dalton:~$ egrep -v '(^ *#)|(^ *$)' /etc/modules
loop
v4l1compat

Why does this fail while use of LD_PRELOAD as above works?  

Regards,             ... Peter E.

-- 
Telephone 1 360 450 2132.
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .


Reply to: