# HG changeset patch # User Christophe Lincoln # Date 1398478781 -7200 # Node ID 5b89f43c1d20983d1cccfcd9d8da94d78a5b8f0c # Parent 732bef1172a4c06f3668bd84105431726c1add3c fix raspberrypi-vc post_install diff -r 732bef1172a4 -r 5b89f43c1d20 raspberrypi-vc/receipt --- a/raspberrypi-vc/receipt Sat Apr 26 04:12:58 2014 +0200 +++ b/raspberrypi-vc/receipt Sat Apr 26 04:19:41 2014 +0200 @@ -39,13 +39,15 @@ post_install() { # PATH + LD_LIBRARY_PATH - echo -n "Enabling: /opt/vc/bin /opt/vc/lib" - cat >> ${1}/etc/profile << EOT + if ! fgrep -q '/opt/vc/bin' ${1}/etc/profile + echo -n "Enabling: /opt/vc/bin /opt/vc/lib" + cat >> ${1}/etc/profile << EOT # Raspberry Pi VC tools and libs -export PATH=$PATH:/opt/vc/bin -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/vc/lib +export PATH=\$PATH:/opt/vc/bin +export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/vc/lib EOT - status + status + fi }