From: Felix Fietkau Date: Sat, 31 Mar 2007 00:59:49 +0000 (+0000) Subject: /sbin/hotplug-call: export the hotplug event type through the environment for hotplug... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=92db48b0017815129beab5427e0433204fe9f361 /sbin/hotplug-call: export the hotplug event type through the environment for hotplug scripts SVN-Revision: 6768 --- diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index b1b6f97b23..607ee2e9db 100755 --- a/package/base-files/files/sbin/hotplug-call +++ b/package/base-files/files/sbin/hotplug-call @@ -1,9 +1,11 @@ #!/bin/sh # Copyright (C) 2006 OpenWrt.org +export HOTPLUG_TYPE="$1" + # bypass the normal hotplug path for firmware loading # would otherwise cause problems with drivers like bcm43xx -[ "$1" = "firmware" -a "$ACTION" = "add" ] && { +[ "$HOTPLUG_TYPE" = "firmware" -a "$ACTION" = "add" ] && { [ -f "/lib/firmware/$FIRMWARE" ] && { echo 1 > "/sys$DEVPATH/loading" cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data" diff --git a/package/base-files/files/sbin/mount_root b/package/base-files/files/sbin/mount_root index 47babf14f8..7b89e8f3f6 100755 --- a/package/base-files/files/sbin/mount_root +++ b/package/base-files/files/sbin/mount_root @@ -13,7 +13,7 @@ else mknod /dev/console c 5 1 exec >/dev/console &1 mkdir /dev/shm - /sbin/hotplug2 --no-persistent --coldplug + /sbin/hotplug2 --no-persistent --coldplug --max-children 3 fi mkdir -p /dev/pts mount none /dev/pts -t devpts