We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 OpenWRT 21.02 版本上,文档中提供的 uci set goauthing.config.username='<YOUR-TUNET-ACCOUNT-NAME>' 运行报错,提示 uci: Invalid argument ;尝试手写配置文件后,goauthing@ init.d 脚本中所用的 config_get 函数也无法获取到相应的配置值。
uci set goauthing.config.username='<YOUR-TUNET-ACCOUNT-NAME>'
uci: Invalid argument
config_get
经测试,一种可能正常工作的组合如下:
命令行:
touch /etc/config/goauthing uci add goauthing goauthing uci set goauthing.@goauthing[0].username='<YOUR-TUNET-ACCOUNT-NAME>' uci set goauthing.@goauthing[0].password='<YOUR-TUNET-PASSWORD>' uci commit
对应的 /etc/config/goauthing 配置文件格式:
config goauthing option username '<YOUR-TUNET-ACCOUNT-NAME>' option password '<YOUR-TUNET-PASSWORD>'
在 init.d 脚本中,需要修改获取配置的命令如下:
start_instance() { local config=$1 local username password config_get username $config username config_get password $config password ... } logout() { local config=$1 local username password config_get username $config username config_get password $config password ... }
The text was updated successfully, but these errors were encountered:
欢迎发一个 PR 修改文档与相应脚本。由于个人没使用过 openwrt,不知道是哪个版本开始语法发生了改变。
Cc @BaksiLi
Sorry, something went wrong.
No branches or pull requests
在 OpenWRT 21.02 版本上,文档中提供的
uci set goauthing.config.username='<YOUR-TUNET-ACCOUNT-NAME>'
运行报错,提示uci: Invalid argument
;尝试手写配置文件后,goauthing@ init.d 脚本中所用的config_get
函数也无法获取到相应的配置值。经测试,一种可能正常工作的组合如下:
命令行:
对应的 /etc/config/goauthing 配置文件格式:
在 init.d 脚本中,需要修改获取配置的命令如下:
The text was updated successfully, but these errors were encountered: