summaryrefslogtreecommitdiff
path: root/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S01hotplug
blob: 89c49e11778ca2304f4a8c10ee5ca7c02ddadbff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"