usbmode: fix hotplug script name
[openwrt/svn-archive/archive.git] / package / system / utils / usbmode / Makefile
index 3182e7b7f5f8c153a67060d373b6bc5926e80941..491f3e572f6e84d2005e44cbdee473842925cb92 100644 (file)
@@ -50,7 +50,7 @@ define Package/usb-modeswitch/install
        perl $(PKG_BUILD_DIR)/convert-modeswitch.pl \
                $(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d/* \
                > $(1)/etc/usb-mode.json
-       $(CP) ./files/usbmode.hotplug $(1)/etc/hotplug.d/usb/
+       $(CP) ./files/usbmode.hotplug $(1)/etc/hotplug.d/usb/20-usb_mode
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/usbmode $(1)/sbin/
 endef