瀏覽代碼

restore bridge br-wlan due to /sbin/wifi passing invalid params to brctl if not configured

> root@cepallo:/etc/config# /etc/init.d/network reload
> setting apcli
> BusyBox v1.26.2 () multi-call binary.
>
> Usage: brctl COMMAND [BRIDGE [INTERFACE]]
>
> Manage ethernet bridges
>
> Commands:
> 	show			Show a list of bridges
> 	addbr BRIDGE		Create BRIDGE
> 	delbr BRIDGE		Delete BRIDGE
> 	addif BRIDGE IFACE	Add IFACE to BRIDGE
> 	delif BRIDGE IFACE	Delete IFACE from BRIDGE
> 	setageing BRIDGE TIME		Set ageing time
> 	setfd BRIDGE TIME		Set bridge forward delay
> 	sethello BRIDGE TIME		Set hello time
> 	setmaxage BRIDGE TIME		Set max message age
> 	setpathcost BRIDGE COST		Set path cost
> 	setportprio BRIDGE PRIO		Set port priority
> 	setbridgeprio BRIDGE PRIO	Set bridge priority
> 	stp BRIDGE [1/yes/on|0/no/off]	STP on/off

however, an "unknown operand" error occurs now:

> root@cepallo:/etc/config# /etc/init.d/network reload
> setting apcli
> sh: 7fff.40a36bc07bf1: unknown operand

acpli0 and br0 are working fine though
Fabian Peter Hammerle 7 年之前
父節點
當前提交
c9ac31fefd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      network

+ 2 - 1
network

@@ -5,7 +5,8 @@ config interface 'loopback'
         option netmask '255.0.0.0'
         option netmask '255.0.0.0'
 
 
 config interface 'wlan'
 config interface 'wlan'
-        option ifname 'ra0'
+        option type 'bridge'
+        option bridge_empty '1'
         option proto 'static'
         option proto 'static'
         option ipaddr '192.168.18.1'
         option ipaddr '192.168.18.1'
         option netmask '255.255.255.0'
         option netmask '255.255.255.0'