All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] initscripts: Add mkdir debugfs and mount
@ 2014-03-03 20:52 Sam Nelson
  2014-03-04  2:46 ` Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Nelson @ 2014-03-03 20:52 UTC (permalink / raw)
  To: meta-arago

- Add script to create /debug directory and mount debugfs

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
---
 .../recipes-core/initscripts/files/debugfs.sh      |    8 ++++++++
 .../initscripts/initscripts_1.0.bbappend           |    8 ++++++++
 2 files changed, 16 insertions(+)
 create mode 100755 meta-arago-distro/recipes-core/initscripts/files/debugfs.sh
 create mode 100644 meta-arago-distro/recipes-core/initscripts/initscripts_1.0.bbappend

diff --git a/meta-arago-distro/recipes-core/initscripts/files/debugfs.sh b/meta-arago-distro/recipes-core/initscripts/files/debugfs.sh
new file mode 100755
index 0000000..17e2474
--- /dev/null
+++ b/meta-arago-distro/recipes-core/initscripts/files/debugfs.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if ! [ -e /debug ] ; then
+  mkdir -p /debug
+fi
+mount -t debugfs debugfs /debug
+
+exit 0
diff --git a/meta-arago-distro/recipes-core/initscripts/initscripts_1.0.bbappend b/meta-arago-distro/recipes-core/initscripts/initscripts_1.0.bbappend
new file mode 100644
index 0000000..1d78ab3
--- /dev/null
+++ b/meta-arago-distro/recipes-core/initscripts/initscripts_1.0.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_append := "${THISDIR}/files"
+
+SRC_URI += "file://debugfs.sh"
+
+do_install_append () {
+	install -c -m 755 ${WORKDIR}/debugfs.sh ${D}${sysconfdir}/init.d/debugfs.sh
+	update-rc.d -r ${D} devpts.sh start 09 S .
+}
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-04 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 20:52 [PATCH] initscripts: Add mkdir debugfs and mount Sam Nelson
2014-03-04  2:46 ` Denys Dmytriyenko
2014-03-04 16:39   ` Nelson, Sam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.