GL-MT300N刷clean openwrt如何设置那个switch button?

Hi, All

淘宝上入了一个GL-MT300N,准备刷clean openwrt,想请教大家,刷好之后有没有相关程序可以调用到那个switch button?例如那个按钮向左拨就会自动向openwrt里发出一个命令,向右拨又是另外一个命令

是按照下面这个信息吗?

Switch access (factory firmware)

The MT300N implements a GPIO switch driver, using the scripts below, the switch position can be determined from shell script and acted upon.

/etc/rc.button/BTN_0
/etc/rc.button/BTN_1

GPIO Switch access

The switch uses GPIOs 42 and 43 and can be access by exporting them as inputs. The values correspond to the switch positions as follows.

Position GPIO 42 GPIO 43
Left High/1 X
Centre Low/0 Low/0
Right X High/1

Where X indicates a "Don't Care" state.

The scripts receive both a button ID in the form "BTN_X" and an action such as "pressed" or "unpressed".

是这个。

你也可以升级到2.261固件。固件里面已经做了相关设置。

我另外问一下,GLI本身的固件何clean openwrt固件有什么区别?我之前的其他设备都是刷的openwrt的固件,用GLI的有什么好处?限制?

好处就是我们开发了界面跟很多配置程序,直接用就好了。

clean固件是什么程序都没有,完全自己装,自己配。对于有洁癖的大牛就用这个。