#303: add gvfs package
#477: Add sdl_sound package
#487: Make kismet package sexier
+ #511: New package usb_modeswitch
#527: misc fixes for dnsmasq package
#565: libevent: Bump version and clean up makefile
#587: Use iptables multipurpose binaries and bump to 1.4.4
# mdev
source "package/udev/Config.in"
endif
+source "package/usb_modeswitch/Config.in"
source "package/usbmount/Config.in"
source "package/usbutils/Config.in"
source "package/wipe/Config.in"
--- /dev/null
+config BR2_PACKAGE_USB_MODESWITCH
+ bool "usb_modeswitch"
+ select BR2_PACKAGE_LIBUSB
+ help
+ USB mode switcher.
+ Used to switch mode on multiple-function devices
+
+ http://www.draisberghof.de/usb_modeswitch/
--- /dev/null
+diff -Nura usb_modeswitch-1.0.1/Makefile usb_modeswitch-1.0.1.nostrip/Makefile
+--- usb_modeswitch-1.0.1/Makefile 2009-04-15 16:15:17.000000000 -0300
++++ usb_modeswitch-1.0.1.nostrip/Makefile 2009-06-10 10:02:05.000000000 -0300
+@@ -13,7 +13,6 @@
+ all: $(PROG)
+ $(PROG): $(OBJS)
+ $(CC) $(CCFLAGS) -o $(PROG) $(OBJS)
+- $(STRIP) $(PROG)
+
+ clean:
+ $(RM) ./usb_modeswitch
--- /dev/null
+#############################################################
+#
+# usb_modeswitch
+#
+#############################################################
+
+USB_MODESWITCH_VERSION = 1.0.5
+USB_MODESWITCH_SOURCE = usb_modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2
+USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch
+USB_MODESWITCH_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+USB_MODESWITCH_DEPENDENCIES = libusb
+USB_MODESWITCH_MAKE_OPT = CC="$(TARGET_CC)" OPTS="$(TARGET_CFLAGS)"
+
+$(eval $(call AUTOTARGETS,package,usb_modeswitch))
+
+$(USB_MODESWITCH_TARGET_CONFIGURE):
+ rm -f $(USB_MODESWITCH_DIR)/usb_modeswitch
+ touch $@
+
+$(USB_MODESWITCH_HOOK_POST_INSTALL):
+ chmod a-x $(TARGET_DIR)/etc/usb_modeswitch.conf
+ touch $@
+
+$(USB_MODESWITCH_TARGET_UNINSTALL):
+ $(call MESSAGE,"Uninstalling")
+ rm -f $(TARGET_DIR)/usr/sbin/usb_modeswitch
+ rm -f $(TARGET_DIR)/etc/usb_modeswitch.conf
+ rm -f $(USB_MODESWITCH_TARGET_INSTALL_TARGET) $(USB_MODESWITCH_HOOK_POST_INSTALL)