diff options
| author | Gabriele M <moto.falcon.git@gmail.com> | 2015-11-28 19:16:00 +0100 |
|---|---|---|
| committer | desaishivam26 <kane.desai@gmail.com> | 2015-12-19 20:22:46 +0530 |
| commit | e457287a6814f63efa9317e1a90af2d45c980842 (patch) | |
| tree | 09a7142917f191c8bf6cd2032cc4501a49f8159a | |
| parent | 5404b9fd322503af5f76d99e74b75de9e857e43a (diff) | |
falcon: init: Update shell commands paths
Also, drop the unneeded grep. This should fix the dection of /userdata
filesystem and CDMA variant.
Change-Id: I3531d463e49de734c21ff0174f22db62123c3ed9
| -rw-r--r-- | init/init_falcon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init_falcon.cpp b/init/init_falcon.cpp index 46a0b8d..c267524 100644 --- a/init/init_falcon.cpp +++ b/init/init_falcon.cpp @@ -57,10 +57,10 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar return; property_get("ro.boot.radio", radio); - fp = popen("/system/bin/ls -la /fsg/falcon_3.img.gz | /system/xbin/cut -d '_' -f3", "r"); + fp = popen("/system/bin/ls -la /fsg/falcon_3.img.gz | /system/bin/cut -d '_' -f3", "r"); fgets(cdma_variant, sizeof(cdma_variant), fp); pclose(fp); - fp = popen("/system/bin/blkid /dev/block/platform/msm_sdcc.1/by-name/userdata | /system/xbin/grep -o 'TYPE=.*' | /system/xbin/cut -c7-10" , "r"); + fp = popen("/system/bin/blkid /dev/block/platform/msm_sdcc.1/by-name/userdata | /system/bin/cut -d'\"' -f4", "r"); fgets(fstype, sizeof(fstype), fp); pclose(fp); |
