The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | #!/system/bin/sh |
| 2 | # An unforunate wrapper script |
| 3 | # so that the exit code of pppd may be retrieved |
| 4 | |
| 5 | |
| 6 | # this is a workaround for issue #651747 |
| 7 | #trap "/system/bin/sleep 1;exit 0" TERM |
| 8 | |
| 9 | |
| 10 | PPPD_PID= |
| 11 | |
| 12 | /system/bin/setprop "net.gprs.ppp-exit" "" |
| 13 | |
| 14 | /system/bin/log -t pppd "Starting pppd" |
| 15 | |
| 16 | /system/bin/pppd $* |
| 17 | |
| 18 | PPPD_EXIT=$? |
| 19 | PPPD_PID=$! |
| 20 | |
| 21 | /system/bin/log -t pppd "pppd exited with $PPPD_EXIT" |
| 22 | |
| 23 | /system/bin/setprop "net.gprs.ppp-exit" "$PPPD_EXIT" |