summaryrefslogtreecommitdiff
path: root/packages/sharp-binary-only/sharp-sdmmc-support-2.4.18-rmk7-pxa3-embedix/sdcontrol
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sharp-binary-only/sharp-sdmmc-support-2.4.18-rmk7-pxa3-embedix/sdcontrol')
-rw-r--r--packages/sharp-binary-only/sharp-sdmmc-support-2.4.18-rmk7-pxa3-embedix/sdcontrol4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/sharp-binary-only/sharp-sdmmc-support-2.4.18-rmk7-pxa3-embedix/sdcontrol b/packages/sharp-binary-only/sharp-sdmmc-support-2.4.18-rmk7-pxa3-embedix/sdcontrol
index baccb3a0aa..7b92507e86 100644
--- a/packages/sharp-binary-only/sharp-sdmmc-support-2.4.18-rmk7-pxa3-embedix/sdcontrol
+++ b/packages/sharp-binary-only/sharp-sdmmc-support-2.4.18-rmk7-pxa3-embedix/sdcontrol
@@ -83,9 +83,7 @@ kill_task()
case "$ACTION" in
'insert')
- # Get available partitions through dmesg. The "tail -1" is needed as
- # sometimes the partitions are printed twice by the kernel.
- #OK_PARTS="`dmesg | tail -3 | grep mmcda | tail -1| sed s/^.*\:\ //`"
+ # Read available partitions from /proc/partitions.
OK_PARTS="`cat /proc/partitions |awk '{print $4}'| grep mmcd`"
if test "`echo "$OK_PARTS" | wc -l | awk '{print $1}`" -gt 1