aboutsummaryrefslogtreecommitdiffstats
path: root/usr/d710_initramfs_files/init
diff options
context:
space:
mode:
Diffstat (limited to 'usr/d710_initramfs_files/init')
-rwxr-xr-xusr/d710_initramfs_files/init31
1 files changed, 0 insertions, 31 deletions
diff --git a/usr/d710_initramfs_files/init b/usr/d710_initramfs_files/init
deleted file mode 100755
index 7035361..0000000
--- a/usr/d710_initramfs_files/init
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/stage1/busybox sh
-export _PATH="$PATH"
-export PATH=/stage1
-BOOT_IMAGE=/dev/block/mmcblk0p5
-
-busybox cd /
-busybox date >>boot.txt
-exec >>boot.txt 2>&1
-busybox rm init
-busybox mount -t proc proc /proc
-busybox mount -t sysfs sysfs /sys
-
-eval $(read_boot_headers ${BOOT_IMAGE})
-
-load_offset=$boot_offset
-load_len=$boot_len
-
-if busybox grep -q bootmode=2 /proc/cmdline ; then
- # recovery boot
- load_offset=$recovery_offset
- load_len=$recovery_len
-fi
-
-busybox dd bs=512 if=${BOOT_IMAGE} skip=$load_offset count=$load_len | busybox zcat | busybox cpio -i
-
-busybox umount /sys
-busybox umount /proc
-busybox date >>boot.txt
-busybox rm -fr /stage1 /dev/*
-export PATH="${_PATH}"
-exec /init