| Summary: | Special problem with ash of busybox in Android | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Karsten <forum+busybox> |
| Component: | Standard Compliance | Assignee: | unassigned |
| Status: | NEW --- | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Karsten
2015-03-02 18:39:53 UTC
I enhanced the bootdeb script with some debug statements to find out where the error occurs.
It is exact this line:
DNS=$(${ANDROID_ROOT:-/system}/bin/getprop net.dns1)
But when i type "getprop net.dns1" as root in a shell directly i get the IP of my gateway in the LAN.
So it works - i don't know why it does not work in the script.
The problem obvious occurs using the ash of busybox.
Try stracing it:
DNS=$(strace -oLOGFILE ${ANDROID_ROOT:-/system}/bin/getprop net.dns1)
and see what's in LOGFILE
Thanks for the Tip! I tried to do it, but at this time i have some problems to execute the shellscript bootdeb. Somehow it will not enter the ash shell in the script. This will take some time to find and fix the errors. But when i type in the Android shell directly busybox ash -c "getprop net.dns1" then this works. I think there is no problem with the busybox itself. This shellscript is somehow programmed bad. |