wok rev 16525

fix raspberrypi-vc post_install
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 26 04:19:41 2014 +0200 (2014-04-26)
parents 732bef1172a4
children 4729095bfd3e
files raspberrypi-vc/receipt
line diff
     1.1 --- a/raspberrypi-vc/receipt	Sat Apr 26 04:12:58 2014 +0200
     1.2 +++ b/raspberrypi-vc/receipt	Sat Apr 26 04:19:41 2014 +0200
     1.3 @@ -39,13 +39,15 @@
     1.4  post_install()
     1.5  {
     1.6  	# PATH + LD_LIBRARY_PATH
     1.7 -	echo -n "Enabling: /opt/vc/bin /opt/vc/lib"
     1.8 -	cat >> ${1}/etc/profile << EOT
     1.9 +	if ! fgrep -q '/opt/vc/bin' ${1}/etc/profile
    1.10 +		echo -n "Enabling: /opt/vc/bin /opt/vc/lib"
    1.11 +		cat >> ${1}/etc/profile << EOT
    1.12  
    1.13  # Raspberry Pi VC tools and libs
    1.14 -export PATH=$PATH:/opt/vc/bin
    1.15 -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/vc/lib
    1.16 +export PATH=\$PATH:/opt/vc/bin
    1.17 +export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/vc/lib
    1.18  
    1.19  EOT
    1.20 -	status
    1.21 +		status
    1.22 +	fi
    1.23  }