Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ameer Dawood
OnlineNandroid
Commits
3f7a1e50
Commit
3f7a1e50
authored
12 years ago
by
Ameer Dawood
Browse files
Options
Download
Email Patches
Plain Diff
v3.6
Removed: mount format detection bloat due to non-busyboxed version.
parent
94aee2c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
onandroid
onandroid
+5
-18
No files found.
onandroid
View file @
3f7a1e50
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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment