aboutsummaryrefslogtreecommitdiffstats
path: root/usr/galaxys2_initramfs_files
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-05-25 10:53:54 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-05-25 10:53:54 +0200
commit05f0203060035bd2cb8c8f98b8b466b934b1c45b (patch)
tree051a8c9d1a431b27fb5d4fecaf5417487857a400 /usr/galaxys2_initramfs_files
parentab6dfccd8d126b50059d39d031cfa1ddc8f32b84 (diff)
downloadkernel_samsung_smdk4412-05f0203060035bd2cb8c8f98b8b466b934b1c45b.zip
kernel_samsung_smdk4412-05f0203060035bd2cb8c8f98b8b466b934b1c45b.tar.gz
kernel_samsung_smdk4412-05f0203060035bd2cb8c8f98b8b466b934b1c45b.tar.bz2
u1: import from CyanogenMod/android_kernel_samsung_smdk4210
Change-Id: I9629a4060538c9c4c6a43a86a56826cd7123d1b5
Diffstat (limited to 'usr/galaxys2_initramfs_files')
-rwxr-xr-xusr/galaxys2_initramfs_files/busyboxbin0 -> 478916 bytes
-rwxr-xr-xusr/galaxys2_initramfs_files/init26
2 files changed, 26 insertions, 0 deletions
diff --git a/usr/galaxys2_initramfs_files/busybox b/usr/galaxys2_initramfs_files/busybox
new file mode 100755
index 0000000..9496f7a
--- /dev/null
+++ b/usr/galaxys2_initramfs_files/busybox
Binary files differ
diff --git a/usr/galaxys2_initramfs_files/init b/usr/galaxys2_initramfs_files/init
new file mode 100755
index 0000000..32eacfb
--- /dev/null
+++ b/usr/galaxys2_initramfs_files/init
@@ -0,0 +1,26 @@
+#!/stage1/busybox sh
+_PATH="$PATH"
+export PATH=/stage1
+
+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
+
+load_image=/stage1/boot.cpio
+
+if busybox grep -q bootmode=2 /proc/cmdline ; then
+ # recovery boot
+ load_image=/stage1/recovery.cpio
+fi
+
+busybox cpio -i < ${load_image}
+
+busybox umount /sys
+busybox umount /proc
+busybox date >>boot.txt
+busybox rm -fr /stage1 /dev/*
+export PATH="${_PATH}"
+exec /init