summaryrefslogtreecommitdiff
path: root/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-29 07:17:01 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-29 07:17:01 +0000
commitb32a95eced1d0f22be1751467ff365117e200f3f (patch)
tree7b968f96d4cf05704a84881272e00a92431c9c7c /target/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug
parentafd718e7cd831503d7485e7e291bcd336e6a2789 (diff)
Add atngw100 target
Diffstat (limited to 'target/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug')
-rwxr-xr-xtarget/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug
new file mode 100755
index 000000000..89c49e117
--- /dev/null
+++ b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+echo -n "Setting up mdev:"
+set -e
+trap 'echo " failed"' EXIT
+/bin/ln -s /proc/self/fd /dev/fd
+/bin/ln -s /proc/self/fd/0 /dev/stdin
+/bin/ln -s /proc/self/fd/1 /dev/stdout
+/bin/ln -s /proc/self/fd/2 /dev/stderr
+/bin/ln -s /proc/kcore /dev/core
+/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug
+/sbin/mdev -s
+trap - EXIT
+echo " done"