Try manually running the postinstall script using /opt/bin/bash instead of /bin/sh.
FWIW, I've installed the gcc toolset on my router and while natively compiling various libraries and software packages, I have noticed that *lots* of scripts, makefiles, etc. assume that /bin/sh is actually a bash shell. Your script is probably trying to do something tricky that our busybox ash shell cannot do.
For my next firmware image, I want to give advanced users the ability to hook/replace certain system binaries. This would include being able to redirect /bin/sh to /opt/bin/bash.
- K.C.





Reply With Quote