Seem you are installing the packages on a vanilla firmware from openwrt.

You should compile your own firmware so that your settings will not be erased when reset, You should also include all necessary packages for your own purpose.