AdamWashington
Results
14
comments of
AdamWashington
这个我再研究一下,实在没有,那就用openwrt的基本命令喽。
```shell if [ $(ifconfig | grep eth | wc -l) -eq 1 ] ; then uci set dhcp.lan.ignore='1' uci commit dhcp fi ```
> 如果网卡名不叫eth呢,可能是ens啥的 那。。。。。哎,我就不懂了。
```shell if [ $(ifconfig | grep -E "(eth|ens)" | wc -l) -eq 1 ] ; then uci set dhcp.lan.ignore='1' uci commit dhcp fi ```