OSDN Git Service

Add system property for ip-up script to get system properties.
authorChung-yih Wang <cywang@google.com>
Fri, 12 Jun 2009 14:46:23 +0000 (22:46 +0800)
committerChung-yih Wang <cywang@google.com>
Fri, 12 Jun 2009 14:46:23 +0000 (22:46 +0800)
pppd/ipcp.c

index a7b984f..b5b5c82 100644 (file)
@@ -1717,6 +1717,7 @@ ipcp_up(f)
     script_setenv("IPREMOTE", ip_ntoa(ho->hisaddr), 1);
 #ifdef ANDROID_CHANGES
     script_setenv("PATH","/sbin:/system/sbin:/system/bin:/system/xbin", 0);
+    script_setenv("ANDROID_PROPERTY_WORKSPACE", getenv("ANDROID_PROPERTY_WORKSPACE"), 0);
 #endif
 
     if (go->dnsaddr[0])