Hallo,
I have a Asus WL500gp, with an attached usb hard drive, and /opt mounted on this harddrive.
My problem: Some programs, for instance "strace" cannot find other programs when called, see below:
root@Zapp:~# /opt/bin/netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 64 XXXXXXXXXXXXXXXXXXXX:34833 ESTABLISHED
tcp 0 0 XXXXXXXXXXXXXXXXXXXXX:29904 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 7 [ ] DGRAM 151 /dev/log
unix 2 [ ] DGRAM 1589
unix 2 [ ] DGRAM 1192
unix 2 [ ] DGRAM 1163
unix 2 [ ] DGRAM 163
unix 2 [ ] DGRAM 162
root@Zapp:~# strace /opt/bin/netstat
execve("", ["/opt/bin/netstat"], [/* 10 vars */]) = -1 ENOENT (No such file or directory)
write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
exit(1) = ?
Process 2801 detached
root@Zapp:~#
My ipkg.conf:
root@Zapp:~# cat /etc/ipkg.conf
src cross-500 http://ipkg.nslu2-linux.org/feeds/optware/wl500g/cross/stable
src snapshots http://openwrt.org/downloads/snapshots/brcm-2.4/packages
dest root /
dest ram /tmp
dest opt /opt
root@Zapp:~#
My profile:
root@Zapp:~# cat /etc/profile
#!/bin/sh
[ -f /etc/banner ] && cat /etc/banner
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/usr/bin:/opt/usr/sbin:/opt/sbin
export LD_LIBRARY_PATH=/lib:/usr/lib:/opt/usr/lib:/opt/lib
export HOME=/tmp
export PS1='\u@\h:\w\$ '
[ -x /bin/more ] || alias more=less
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
[ -z /bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
root@Zapp:~#
Thanks in advance!
max