I debug android pppd dial-in when it encountered a problem:
manual dialing can be connected, but can not automatically dial (init.gprs-pppd), hope to have expert advice!
log is as follows:
logcat-s pppd
--------- beginning of / dev / log / main
I / pppd (2031): Starting pppd
I / pppd (2034): pppd exited with 127
--------- beginning of / dev / log / system
------ Solution --------------- -----------------------------
right! Pppd does not exist. . . . What happens to return empty
------ For reference only ---------------------------------- -----
return value 127 is empty, meaning, pppd does not exist.
------ For reference only ---------------------------------- -----
Thank you for your reply, the situation is like this, I want init.gprs-pppd script gprs dial-up automatically at boot time:
#! / system / bin / sh
# An unforunate wrapper script
# so that the exit code of pppd may be retrieved
# this is a workaround for issue # 651747
# trap "/ system / bin / sleep 1; exit 0" TERM
PPPD_PID =
/ system / bin / setprop "net.gprs.ppp-exit" ""
/ system / bin / log-t pppd "Starting pppd"
/ system / xbin / pppd call gprs $ *
# / system / bin / pppd file / etc / ppp / peers / gprs
PPPD_EXIT = $?
PPPD_PID = $!
/ system / bin / log-t pppd "pppd exited with $ PPPD_EXIT"
/ system / bin / setprop "net.gprs.ppp-exit" "$ PPPD_EXIT"
But see pppd log every time a boot print, there will be "pppd exited with 127" error. Manual gprs dial-up can (pppd call gprs), but do not know why it automatically dialing will not work, is not to start in the upper gprs dial code to modify it?
------ For reference only -------------------------------------- -
Thank you for your reply, the situation is like this, I want init.gprs-pppd script gprs dial-up automatically at boot time:
#! / system / bin / sh
# An unforunate wrapper script
# so that the exit code of pppd may be retrieved
# this is a workaround for issue # 651747
# trap "/ system / bin / sleep 1; exit 0" TERM
PPPD_PID =
/ system / bin / setprop "net.gprs.ppp-exit" ""
/ system / bin / log-t pppd "Starting pppd"
/ system / xbin / pppd call gprs $ *
# / system / bin / pppd file / etc / ppp / peers / gprs
PPPD_EXIT = $?
PPPD_PID = $!
/ system / bin / log-t pppd "pppd exited with $ PPPD_EXIT"
/ system / bin / setprop "net.gprs.ppp-exit" "$ PPPD_EXIT"
But see pppd log every time a boot print, there will be "pppd exited with 127" error. Manual gprs dial-up can (pppd call gprs), but do not know why it automatically dialing will not work, is not to start in the upper gprs dial code to modify it?
------ For reference only -------------------------------------- -
bloggers do you solve this problem I have encountered seeking back
------ For reference only -------------- -------------------------
2 years of postings, the landlord replies that I have encountered this problem now ~ ~ ~ < br>
没有评论:
发表评论