diff options
Diffstat (limited to 'target/device/valka/target_skeleton/etc/rc.d/01.mdev')
-rwxr-xr-x | target/device/valka/target_skeleton/etc/rc.d/01.mdev | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/device/valka/target_skeleton/etc/rc.d/01.mdev b/target/device/valka/target_skeleton/etc/rc.d/01.mdev new file mode 100755 index 000000000..a9a2da7c3 --- /dev/null +++ b/target/device/valka/target_skeleton/etc/rc.d/01.mdev @@ -0,0 +1,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" |