FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
235 views 0 comments
by anonymous
Hello!

I would like to know the commands I should enter in the user script window so that when rebooting it takes a previously saved configuration profile different from the default.

Many thanks

1 Answer

+1 vote
by anonymous

Hello, 

The easiest way is to include the lines in the startup script window to run after every reboot of the router. This can be done through System->Custom Scripts. You must include the following lines to return to a specific profile:

tar -C / -xzf /etc/profiles/

/usr/sbin/profile.sh -u

uci set profiles.general.profile='profile'

uci commit

/sbin/luci-reload

 

Where profile, is the name of the profile you want to set by default.