include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=kmod-switch
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=kmod-switch
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/package.mk
+
+extern char *nvram_get(const char *name);
+
/* Data structure for a Roboswitch device. */
struct robo_switch {
char *device; /* The device name string (ethX) */
/* Data structure for a Roboswitch device. */
struct robo_switch {
char *device; /* The device name string (ethX) */
robo_write16(ROBO_CTRL_PAGE, i, 0);
}
robo_write16(ROBO_CTRL_PAGE, i, 0);
}
- /* WAN port LED */
- robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F);
+ /* WAN port LED, except for Netgear WGT634U */
+ if (strcmp(nvram_get("nvram_type"), "cfe"))
+ robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F);