Hotplug fixen.

This commit is contained in:
solomon 2002-08-20 13:12:42 +00:00
parent f8f19fdcd3
commit 2fbdcbdaa3
2 changed files with 12 additions and 7 deletions

View file

@ -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
View file

@ -0,0 +1,7 @@
#!/bin/sh
#############
# wlan.hotplug
#
# Called by the hotplug system after the module is installed.
/etc/init.d/wlan start