forked from dkbrown/android_device_samsung_epic
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix device support for CM9 SamsungRIL.
Changes include: - Removing hardcoded properties that are now provided by SamsungRIL and pppd_cdma. - Use "ril.cdma.data_state" property instead of "ril.cdma.data_ready" to signal (re)start/stop of pppd_cdma service. - No hardcode DNS addresses in pppd_runner, since they're now forwarded to SamsungRIL. - /system/etc/ip-up script to pass network parameters to SamsungRIL. Change-Id: Iac2669d4d5df047451d1da94faa13a411c2c8157
- Loading branch information
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/system/bin/sh | ||
setprop net.dns1 8.8.8.8 | ||
setprop net.dns2 8.8.4.4 | ||
/system/bin/pppd /dev/ttyCDMA0 115200 user SprintNextel nodetach usepeerdns defaultroute | ||
|
||
PATH="/system/bin" | ||
|
||
ttyname=`getprop net.cdma.datalinkinterface` | ||
exec pppd "$ttyname" 115200 user SprintNextel nodetach usepeerdns defaultroute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/system/bin/sh | ||
|
||
PATH="/system/bin" | ||
|
||
setprop "net.cdma.ppp.interface" "$IFNAME" | ||
setprop "net.$IFNAME.local-ip" "$IPLOCAL" | ||
setprop "net.$IFNAME.remote-ip" "$IPREMOTE" | ||
setprop "net.$IFNAME.dns1" "$DNS1" | ||
setprop "net.$IFNAME.dns2" "$DNS2" | ||
|
||
# FIXME | ||
setprop ril.cdma.data_state 2 |