diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-01-31 00:34:28 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-07 16:42:47 +0100 |
| commit | 884c7c6eee8e6116c1a9b9ebb0e07c1e103895fb (patch) | |
| tree | 1e3f720de51c6b71db1f24cf0dac8ce1a94afb68 /meta/recipes-kernel/modutils-initscripts/files | |
| parent | bc2c2fe1f6d9952aa7f6de2a461011238568e341 (diff) | |
| download | poky-884c7c6eee8e6116c1a9b9ebb0e07c1e103895fb.tar.gz | |
module-init-tools: Delete
Since its provided by kmod
(From OE-Core rev: 27bc204010b9dccb30847d7b3216f8b1e106f64e)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/modutils-initscripts/files')
| -rw-r--r-- | meta/recipes-kernel/modutils-initscripts/files/PD.patch | 8 | ||||
| -rwxr-xr-x | meta/recipes-kernel/modutils-initscripts/files/modutils.sh | 36 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-kernel/modutils-initscripts/files/PD.patch b/meta/recipes-kernel/modutils-initscripts/files/PD.patch new file mode 100644 index 0000000000..21ac49cbd8 --- /dev/null +++ b/meta/recipes-kernel/modutils-initscripts/files/PD.patch | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | Upstream-Status: Inappropriate [licensing] | ||
| 2 | |||
| 3 | Index: modutils-initscripts-1.0/LICENSE | ||
| 4 | =================================================================== | ||
| 5 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
| 6 | +++ modutils-initscripts-1.0/LICENSE 2010-12-06 14:26:03.570339002 -0800 | ||
| 7 | @@ -0,0 +1 @@ | ||
| 8 | +Public Domain | ||
diff --git a/meta/recipes-kernel/modutils-initscripts/files/modutils.sh b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh new file mode 100755 index 0000000000..9049bbb8aa --- /dev/null +++ b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: module-init-tools | ||
| 4 | # Required-Start: | ||
| 5 | # Required-Stop: | ||
| 6 | # Should-Start: checkroot | ||
| 7 | # Should-stop: | ||
| 8 | # Default-Start: S | ||
| 9 | # Default-Stop: | ||
| 10 | # Short-Description: Process /etc/modules. | ||
| 11 | # Description: Load the modules listed in /etc/modules. | ||
| 12 | ### END INIT INFO | ||
| 13 | |||
| 14 | LOAD_MODULE=modprobe | ||
| 15 | [ -f /proc/modules ] || exit 0 | ||
| 16 | [ -f /etc/modules ] || exit 0 | ||
| 17 | [ -e /sbin/modprobe ] || LOAD_MODULE=insmod | ||
| 18 | |||
| 19 | if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then | ||
| 20 | [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..." | ||
| 21 | depmod -Ae | ||
| 22 | fi | ||
| 23 | |||
| 24 | [ "$VERBOSE" != no ] && echo -n "Loading modules: " | ||
| 25 | (cat /etc/modules; echo; ) | | ||
| 26 | while read module args | ||
| 27 | do | ||
| 28 | case "$module" in | ||
| 29 | \#*|"") continue ;; | ||
| 30 | esac | ||
| 31 | [ "$VERBOSE" != no ] && echo -n "$module " | ||
| 32 | eval "$LOAD_MODULE $module $args >/dev/null 2>&1" | ||
| 33 | done | ||
| 34 | [ "$VERBOSE" != no ] && echo | ||
| 35 | |||
| 36 | exit 0 | ||
