diff options
author | Richard Purdie <richard@openedhand.com> | 2008-06-16 11:07:51 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-06-16 11:07:51 +0000 |
commit | 322393c27f305b41f1911e64158676a9468de828 (patch) | |
tree | cfd7b0cb643f5af495e87c639dcbd08668d4430f /meta/packages/linux-hotplug/files/soc.agent | |
parent | 5b286d94930d59a2946acd96811c420783c64685 (diff) | |
download | poky-322393c27f305b41f1911e64158676a9468de828.tar.gz |
linux-hotplug: Drop, we don't support 2.4 kernels
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4670 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/linux-hotplug/files/soc.agent')
-rw-r--r-- | meta/packages/linux-hotplug/files/soc.agent | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/meta/packages/linux-hotplug/files/soc.agent b/meta/packages/linux-hotplug/files/soc.agent deleted file mode 100644 index e91246196f..0000000000 --- a/meta/packages/linux-hotplug/files/soc.agent +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # SoC hotplug agent for 2.6 kernels | ||
4 | # | ||
5 | # ACTION=add | ||
6 | # SOC_ID=1234 | ||
7 | # | ||
8 | |||
9 | cd /etc/hotplug | ||
10 | . ./hotplug.functions | ||
11 | |||
12 | MAP_CURRENT=$MODULE_DIR/modules.socmap | ||
13 | |||
14 | # | ||
15 | # stdin is "modules.socmap" syntax | ||
16 | # on return, all matching modules were added to $DRIVERS | ||
17 | # | ||
18 | soc_map_modules () | ||
19 | { | ||
20 | while read line | ||
21 | do | ||
22 | # comments are lines that start with "#" ... | ||
23 | # be careful, they still get parsed by bash! | ||
24 | case "$line" in | ||
25 | \#*) continue ;; | ||
26 | esac | ||
27 | |||
28 | set $line | ||
29 | |||
30 | module="$1" | ||
31 | id="$2" | ||
32 | |||
33 | if [ "$id" != "0x$SOC_ID" ]; then | ||
34 | continue | ||
35 | fi | ||
36 | |||
37 | # It was a match! | ||
38 | case " $DRIVERS " in | ||
39 | *" $module "* ) | ||
40 | : already found | ||
41 | ;; | ||
42 | * ) | ||
43 | DRIVERS="$module $DRIVERS" | ||
44 | ;; | ||
45 | esac | ||
46 | : drivers $DRIVERS | ||
47 | done | ||
48 | } | ||
49 | |||
50 | case $ACTION in | ||
51 | |||
52 | add) | ||
53 | |||
54 | load_drivers soc $MAP_CURRENT "$SOC_ID" | ||
55 | ;; | ||
56 | |||
57 | *) | ||
58 | debug_mesg SoC $ACTION event not supported | ||
59 | exit 1 | ||
60 | ;; | ||
61 | |||
62 | esac | ||