--- /dev/null
+#!/bin/sh
+
+if [ "${PRODUCT:0:9}" = "1b1f/c00f" ]; then
+ logger "HMLAN: ${ACTION} ${PRODUCT}"
+
+ case "$ACTION" in
+ add)
+ if [ "`pidof hmland`" = "" ]; then
+ logger "Starting hmland"
+ hmland -d
+ fi
+ ;;
+ remove)
+ if [ "`pidof hmland`" != "" ]; then
+ logger "Stopping hmland"
+ killall hmland
+ fi
+ ;;
+ esac
+fi
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hmland $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hmsniff $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/20-hmlan.OpenWRT $(1)/etc/hotplug.d/usb/20-hmlan
endef
$(eval $(call BuildPackage,hmcfgusb))