kumquat-buildroot/target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S01hotplug

15 lines
340 B
Plaintext
Raw Normal View History

2007-08-17 15:02:52 +02:00
#!/bin/sh
2007-07-29 09:15:35 +02:00
2007-08-17 15:02:52 +02:00
echo -n "Setting up mdev: "
2007-07-29 09:15:35 +02:00
set -e
2007-08-17 15:02:52 +02:00
trap 'echo "failed"' EXIT
2007-07-29 09:15:35 +02:00
/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
2007-08-17 15:02:52 +02:00
echo "done"