Commit 3f7a1e50 authored by Ameer Dawood's avatar Ameer Dawood
Browse files

v3.6

Removed: mount format detection bloat due to non-busyboxed version.
parent 94aee2c9
echo "##########################################"
echo "Online Nandroid Backup v3.5"
echo "Online Nandroid Backup v3.6"
echo "* A tool to perform a nandroid backup"
echo " without booting into recovery."
echo "* This tool backups /system , /data , "
......@@ -158,12 +158,7 @@ entry=`busybox df -m /cache | busybox tail -1`
u_cache=`echo $entry | busybox cut -d' ' -f 3 | busybox cut -d '%' -f 1`
# .android_secure partition size
# Determine mount command's output format
if [ "`busybox mount | busybox grep "sdcard.*vfat" | busybox cut -d ' ' -f 2`" == "on" ]; then
sdcardm=`busybox mount | busybox grep "sdcard.*vfat" | busybox cut -d ' ' -f 3`
else
sdcardm=`busybox mount | busybox grep "sdcard.*vfat" | busybox cut -d ' ' -f 2`
fi
sdcardm=`busybox mount | busybox grep "sdcard.*vfat" | busybox cut -d ' ' -f 3`
# Mount sdcard into a temporary location for accessing .android_secure partition
busybox mount -o remount,rw /
busybox mkdir -p $sdcard_temp_mount
......@@ -180,17 +175,9 @@ else
sdext_exists=1
fi
if [ $sdext_exists == 1 ]; then
# Determine mount command's output format
if [ `busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 2` == "on" ]; then
extv=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 5`
extd=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 3 | busybox cut -d '/' -f 2`
extm=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 3`
else
extv=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 3`
extd=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 2 | busybox cut -d '/' -f 2`
extm=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 2`
fi
# Grab sd-ext mount point
extv=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 5`
extd=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 3 | busybox cut -d '/' -f 2`
extm=`busybox mount | busybox grep "ext.*ext" | busybox cut -d ' ' -f 3`
entry=`busybox df -m $extm | busybox tail -1`
u_ext=`echo $entry | busybox cut -d ' ' -f 3 | busybox cut -d '%' -f 1`
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment