diff options
-rwxr-xr-x | linaro-android-nfs-tool.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linaro-android-nfs-tool.sh b/linaro-android-nfs-tool.sh index 2195903..f91fb3d 100755 --- a/linaro-android-nfs-tool.sh +++ b/linaro-android-nfs-tool.sh @@ -263,7 +263,7 @@ function uncompress_tarball(){ function update_init_files(){ count=$(ls -l ${nfs_entry_path}/fstab.* 2>/dev/null|wc -l) - if [ "X${count}" != "X1" ];then + if [ "${count}" -lt 1 ];then echo "Failed to find the fstab file in root directory" exit 1 fi @@ -272,8 +272,6 @@ function update_init_files(){ sed -i "\%\s\+/system\s\+%d" ${file_fstab} sed -i "\%\s\+/cache\s\+%d" ${file_fstab} - file_fstab_basename=$(basename "${file_fstab}") - hardware=${file_fstab_basename#fstab.} #hack on installd command to support boot via nfs echo "hack.installd.for.nfs=1" >> ${nfs_entry_path}/system/build.prop } |