summaryrefslogtreecommitdiff
path: root/meta/packages/linux-hotplug/files/mmc.agent
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-06-16 11:07:51 +0000
committerRichard Purdie <richard@openedhand.com>2008-06-16 11:07:51 +0000
commit322393c27f305b41f1911e64158676a9468de828 (patch)
treecfd7b0cb643f5af495e87c639dcbd08668d4430f /meta/packages/linux-hotplug/files/mmc.agent
parent5b286d94930d59a2946acd96811c420783c64685 (diff)
downloadopenembedded-core-322393c27f305b41f1911e64158676a9468de828.tar.gz
openembedded-core-322393c27f305b41f1911e64158676a9468de828.tar.bz2
openembedded-core-322393c27f305b41f1911e64158676a9468de828.tar.xz
openembedded-core-322393c27f305b41f1911e64158676a9468de828.zip
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/mmc.agent')
-rwxr-xr-xmeta/packages/linux-hotplug/files/mmc.agent52
1 files changed, 0 insertions, 52 deletions
diff --git a/meta/packages/linux-hotplug/files/mmc.agent b/meta/packages/linux-hotplug/files/mmc.agent
deleted file mode 100755
index a80daa460..000000000
--- a/meta/packages/linux-hotplug/files/mmc.agent
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-#
-# H3600 Sleeve hotplug policy agent for Linux 2.4 kernels
-#
-# Kernel NET hotplug params include:
-#
-# ACTION=%s [add or remove]
-# MEDIA=%s
-# SLOT=%d
-#
-
-. /etc/hotplug/hotplug.functions
-#DEBUG=yes export DEBUG
-
- echo "Executing $0 action=$ACTION, media=$MEDIA ($SLOT)" > /dev/console
-
-MMC_MOUNT_OPTIONS="-t auto -o sync,noatime"
-
-if [ -f /etc/sysconfig/hotplug ] ; then
- . /etc/sysconfig/hotplug
-fi
-
-case `uname -r` in
-2.4*)
- devpath=mmc/part
- ;;
-*)
- devpath=mmcblk0p
- ;;
-esac
-
-if [ "$ACTION" = "add" ] ; then
- sleep 4
- echo -n add > /dev/console
- for n in 1 2 3 4 ; do
- device=/dev/$devpath$n
- if [ "$n" = "1" ] ; then
- card=/mnt/card
- else
- card=/mnt/card$n
- fi
- [ -b $device ] || break
- echo " flash on $device" > /dev/console
- [ -d $card ] || mkdir -p $card
- mount $MMC_MOUNT_OPTIONS $device $card
- done
-
-else
- for card in /mnt/card*; do
- umount $card
- done
-fi