blob: a9a2da7c35430a891b88c5a047f113dcf23b38e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/ash
. /etc/rc.subr
start() {
echo -n " * Starting mdev: "
set -e
trap 'echo "Failed"' EXIT
${ln_program} -s /proc/self/fd /dev/fd
${ln_program} -s /proc/self/fd/0 /dev/stdin
${ln_program} -s /proc/self/fd/1 /dev/stdout
${ln_program} -s /proc/self/fd/2 /dev/stderr
${ln_program} -s /proc/kcore /dev/core
echo /sbin/mdev > /proc/sys/kernel/hotplug
${mdev_program} ${mdev_flags}
trap - EXIT
echo "Ok"
}
stop() {
return 0;
}
rc_run_command "$1"
|