I have two scripts used to setup perf on an embedded linux system and they work fine except for the last line
#!/bin/bash
sudo route add -net 192.168.2.0 gw 192.168.42.1 netmask 255.255.255.0
scp -P 23 ~/perf_p7/perfSetup.sh 192.168.42.1:../tmp
ssh -p 23 192.168.42.1 bash ../tmp/perfSetup.sh
and
#!/bin/bash
mkdir /mnt/buildroot-target
IP=192.168.42.2
nfs.sh ${IP}
mount -o nolock,proto=tcp,addr=${IP} -t nfs ${IP}:/home/vclement/sfx1_build/Binaries/p7-arm/master/buildroot/target /mnt/buildroot-target/
alias perf='LD_LIBRARY_PATH=/mnt/buildroot-target/usr/lib /mnt/buildroot-target/usr/bin/perf'
alias perf='LD_LIBRARY_PATH=/mnt/buildroot-target/usr/lib /mnt/buildroot-target/usr/bin/perf'
does not seem to work however when I run it manually in the console, it works just fine in order to let me use the "perf" command directly.
If anybody has any idea why that is or has a fix, thanks for letting me know