Trying to make uci network configuration one time #22
|
@ -1,3 +1,5 @@
|
||||||
|
[ "$(uci -q get firewall.@rule[-1].name)" = "Allow-SSH" ] && exit 0
|
||||||
|
|||||||
|
|
||||||
# switch LAN to eth1
|
# switch LAN to eth1
|
||||||
/sbin/uci set network.@device[0].ports='eth1'
|
/sbin/uci set network.@device[0].ports='eth1'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user
This may not work if I add more rules (manually) later.