FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14124 questions

16781 answers

27569 comments

53950 members

0 votes
154 views 0 comments
by
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

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.