I use UCI together with bash. In case of other shells the variable and loop syntax might have to be adjusted accordingly.
-
Reference the newly added item with
[-1]:uci add firewall rule uci set firewall.@rule[-1].name=test
| #!/bin/sh | |
| # | |
| # FOR USE IN OPENWRT | |
| # This script creates a guest network fully isolated from the main one. | |
| # Tested on a Xiaomi AX3000T router; should work on any OpenWRT-powered router. | |
| # | |
| # - Ensure the Wi-Fi interfaces retain their default names (radio0 and radio1). | |
| # - For enable download/upload limits, you MUST install the sqm-scripts package on your OpenWRT router. | |
| # - For enable roaming (aka wifi mesh): |
For fun, I had ChatGPT take the free response section of the 2022 AP Computer Science A exam. (The exam also has a multiple-choice section, but the College Board doesn't publish this.) It scored 32/36.
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |