Hotplug fixen.
This commit is contained in:
parent
f8f19fdcd3
commit
2fbdcbdaa3
12
etc/Makefile
12
etc/Makefile
|
@ -84,15 +84,13 @@ ifeq ($(INSTFIXED), y)
|
|||
mkdir -p $(TARGET_ROOT_ON_HOST)/etc/hotplug/usb; \
|
||||
mkdir -p $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci; \
|
||||
if [ ! -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/usb/prism2_usb ]; then \
|
||||
ln -s /etc/init.d/wlan /etc/hotplug/usb/prism2_usb; \
|
||||
cp wlan.hotplug $(TARGET_ROOT_ON_HOST)/etc/hotplug/usb/prism2_usb; \
|
||||
fi; \
|
||||
pushd $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci ; \
|
||||
if [ ! -f prism2_pci ]; then \
|
||||
ln -s ../../init.d/wlan prism2_pci; \
|
||||
if [ ! -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_pci ]; then \
|
||||
cp wlan.hotplug $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_pci; \
|
||||
fi; \
|
||||
if [ ! -f prism2_plx ]; then \
|
||||
ln -s ../../init.d/wlan /etc/hotplug/pci/prism2_plx; \
|
||||
if [ ! -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_plx ]; then \
|
||||
cp wlan.hotplug $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_plx; \
|
||||
fi; \
|
||||
popd; \
|
||||
fi
|
||||
endif
|
||||
|
|
7
etc/wlan.hotplug
Executable file
7
etc/wlan.hotplug
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
#############
|
||||
# wlan.hotplug
|
||||
#
|
||||
# Called by the hotplug system after the module is installed.
|
||||
|
||||
/etc/init.d/wlan start
|
Loading…
Reference in a new issue