summaryrefslogtreecommitdiff
path: root/packages/initrdscripts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initrdscripts')
-rw-r--r--packages/initrdscripts/devimage/.mtn2git_empty0
-rw-r--r--packages/initrdscripts/devimage/devimage.sh12
-rw-r--r--packages/initrdscripts/devimage/dropbear_rsa_host_keybin0 -> 426 bytes
-rw-r--r--packages/initrdscripts/devimage/passwd1
-rw-r--r--packages/initrdscripts/devimage_0.1.bb11
5 files changed, 24 insertions, 0 deletions
diff --git a/packages/initrdscripts/devimage/.mtn2git_empty b/packages/initrdscripts/devimage/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/initrdscripts/devimage/.mtn2git_empty
diff --git a/packages/initrdscripts/devimage/devimage.sh b/packages/initrdscripts/devimage/devimage.sh
new file mode 100644
index 0000000000..e85debf245
--- /dev/null
+++ b/packages/initrdscripts/devimage/devimage.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+mkdir /proc
+mount -t proc proc /proc
+mkdir /sys
+mount -t sysfs sysfs /sys
+mkdir -p /dev/pts
+mount -t devpts devpts /dev/pts
+
+/usr/sbin/dropbear -E
+
+/bin/sh
diff --git a/packages/initrdscripts/devimage/dropbear_rsa_host_key b/packages/initrdscripts/devimage/dropbear_rsa_host_key
new file mode 100644
index 0000000000..18d832332e
--- /dev/null
+++ b/packages/initrdscripts/devimage/dropbear_rsa_host_key
Binary files differ
diff --git a/packages/initrdscripts/devimage/passwd b/packages/initrdscripts/devimage/passwd
new file mode 100644
index 0000000000..233d68fae1
--- /dev/null
+++ b/packages/initrdscripts/devimage/passwd
@@ -0,0 +1 @@
+root::0:0:root:/:/bin/sh
diff --git a/packages/initrdscripts/devimage_0.1.bb b/packages/initrdscripts/devimage_0.1.bb
new file mode 100644
index 0000000000..e29e6a93ea
--- /dev/null
+++ b/packages/initrdscripts/devimage_0.1.bb
@@ -0,0 +1,11 @@
+SRC_URI = "file://devimage.sh file://passwd file://dropbear_rsa_host_key"
+PR = "r0.7"
+
+do_install() {
+ install -m 0755 ${WORKDIR}/devimage.sh ${D}/init
+ install -d ${D}/etc/dropbear
+ install -m 0600 ${WORKDIR}/dropbear_rsa_host_key ${D}/etc/dropbear/
+ install -m 0644 ${WORKDIR}/passwd ${D}/etc/
+}
+
+FILES_${PN} += " /init /etc/*"