Skip to content

Commit

Permalink
Force busybox df, fix previnstall.sh (offensive-security#709)
Browse files Browse the repository at this point in the history
Signed-off-by: James Christopher Adduono <[email protected]>
  • Loading branch information
jcadduono committed Dec 16, 2016
1 parent e23e1a7 commit fb4d2fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nethunter-installer/common/tools/freespace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SA=/system/app
DA=/data/app

UpdateFreeSpace() {
FreeSpace=$(df -m /system | awk '!/Used/ {print $4}')
FreeSpace=$(busybox df -m /system | awk '!/Used/ {print $4}')
}

UpdateFreeSpace
Expand Down Expand Up @@ -78,4 +78,4 @@ if [ ! "$FreeSpace" -gt "$SpaceRequired" ]; then
exit 1
fi

exit 0
exit 0
2 changes: 1 addition & 1 deletion nethunter-installer/update/tools/previnstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ -d "$NH" ]; then
elif [ -d "$NHAPP" ]; then
print "Detected previous install of Kali $ARCH, moving chroot..."
mv "$NHAPP" "$NHSYS"
}
fi

# Just to be safe lets remove old version of NetHunter app
rm -rf /data/data/com.offsec.nethunter
Expand Down

0 comments on commit fb4d2fe

Please sign in to comment.