blob: 521eec9886318cac0459d8b63dd8a06786aa26f7 [file] [log] [blame]
The Android Open Source Project4f6e8d72008-10-21 07:00:00 -07001#!/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
10PPPD_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
18PPPD_EXIT=$?
19PPPD_PID=$!
20
21/system/bin/log -t pppd "pppd exited with $PPPD_EXIT"
22
23/system/bin/setprop "net.gprs.ppp-exit" "$PPPD_EXIT"