From: Mike Baker Date: Tue, 20 Jul 2004 02:37:57 +0000 (+0000) Subject: quick and dirty buffalo hack X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa6a0accebccba37274db1fd85d970b9fa7dd9f6;p=librecmc%2Flibrecmc.git quick and dirty buffalo hack SVN-Revision: 107 --- diff --git a/obsolete-buildroot/sources/openwrt-diag.c b/obsolete-buildroot/sources/openwrt-diag.c index 73bdac918e..250a58e307 100644 --- a/obsolete-buildroot/sources/openwrt-diag.c +++ b/obsolete-buildroot/sources/openwrt-diag.c @@ -52,6 +52,9 @@ static void v1_set_dmz(u8 state) { } } +// - - - - - +static void ignore(u8 ignored) {}; + // - - - - - #define BIT_DMZ 0x01 #define BIT_DIAG 0x04 @@ -114,6 +117,12 @@ static int __init diag_init() board_type=1; set_diag=v1_set_diag; set_dmz=v1_set_dmz; + + if (board_type==0x41d) { + printk(KERN_INFO "buffalo hack.\n"); + set_diag=ignore; + set_dmz=v2_set_dmz; + } } else { board_type=2; set_diag=v2_set_diag;