Config File Upload

Hi everyone, i’m trying tu upload config file into a TRB500 but there is a problem, my CLI freeze when i do the command to import the config file.


i achieved it a week ago but now my TRB500 just freeze when i upload, any suggestions?

Hey,

Instead of typing:

uci import /tmp/config.txt

give this a shot:

uci import </tmp/config.txt

And remember to follow it up with:

uci commit

This commits your changes. After that, you’re good to reboot, and the changes should take effect.

Best regards,

Thank you for you help,
do you know if it’s possible to partially change the configuration using this method?
for exemple change only the mobile data limit?

Regards.

Hello,

Yes, for this you can use uci set. So the full command would look like uci set quota_limit.mob1s1a1.data_limit='2000'.
This would increase mobile data limit to 2000MB for a configured period. In general, you can execute “uci show” to show all current device settings.

Kind regards,

Hello

but i can’t fusion 2 config files to change only 1 parameter, for example i have a config file with only my data limit parameters nothing more, can i do a command to commit this configuration in my TRB500?

Regards,

Hello,

Yes, you can. Only the configuration file differences will be adjusted. So if the only difference is in the data limit, only that change will be applied.

Kind regards,

Hello,

I have to copy the whole configuration file and modify what I need. I can’t have a configuration file with just the parameter line I need?

Regards,

Yes, you can, but in cases like that, using the command uci set <some_config> would be more appropriate.

Thank you i’ll aply your tips

Regards,