Skip navigation

 Attention! Beginning from STB software version 0.2.18, all customizations of the Embedded portal is necessary to make using source codes of portal. After all customizations complete, it is necessary to make compiling and minimization of the source code of the portal. After compiling and minimization all files of the portal could be placed in the home directory for further image-making. Source code of portal (portal-dev-*.tgz is in a directory with current release http://soft.infomir.com)

Disabling System settings, Settings menu and entering the Embedded portal are realized by editing rules.js files that are located in related directories. These files content the lists of items (commands) of embedded portal menus: Settings, System settings, Portal loading/ (page 404). To disable/hide any of those sections you should change the value from true to false.

rules.js files are located in the next embedded portal directories of RootFS:

  • /home/web/ - “Settigns”;

  • /home/web/system/settings - “System settings”;

  • /home/web/system/pages/loader - “Loader (page 404)”.

  /home/web/rules.js content:
/**
 * Customization rules for manual tune
 * @author DarkPark
 * @namespace
 */
RULES = {
 
        'Playback'          : true,
 
        'Interface'         : true,
 
        'AutoUpdateSoftware': true,
 
        'TimeShift'         : true,
 
        'SpeedTest'         : true,
 
        'SystemSettings'    : true,
 
        'SetupWizard'       : true,
 
        'DVB'               : true
 
};
  /home/web/system/settings/rules.js content:
/**
 * Customization rules for manual tune
 * @author DarkPark
 * @namespace
 */
RULES = {
        // Network
        'Network'                                     : true,
        'Network/Wired(Ethernet)'                     : true,
        'Network/Wired(Ethernet)/Auto(DHCP)'          : true,
        'Network/Wired(Ethernet)/Auto(DHCP),manualDNS': true,
        'Network/Wired(Ethernet)/Manual'              : true,
        'Network/Wired(Ethernet)/NoIP'                : true,
        'Network/PPPoE'                               : true,
        'Network/PPPoE/Auto(DHCP)'                    : true,
        'Network/PPPoE/Auto(DHCP),manualDNS'          : true,
        'Network/PPPoE/DisablePPPoE'                  : true,
        'Network/Wireless(Wi-Fi)'                     : true,
        'Network/Wireless(Wi-Fi)/Auto(DHCP)'          : true,
        'Network/Wireless(Wi-Fi)/Auto(DHCP),manualDNS': true,
        'Network/Wireless(Wi-Fi)/Manual'              : true,
 
        // Servers
        'Servers'                                     : true,
        'Servers/General'                             : true,
        'Servers/Portals'                             : true,
        'Servers/Portals/More'                        : true,
        'Servers/More'                                : true,
 
        // Video
        'Video'                                       : true,
        'Video/More'                                  : true,
 
        // Audio
        'Audio'                                       : true,
        'Audio/More'                                  : true,
 
        // Advanced Settings
        'AdvancedSettings'                            : true,
        'AdvancedSettings/more'                       : true,
 
        // Keyboard Layout
        'KeyboardLayout'                              : true,
 
        // Network Info
        'NetworkInfo'                                 : true,
        'NetworkInfo/Wired(Ethernet)'                 : true,
- /home/web/system/settings/rules.js 1/68 1%
        'Network/PPPoE/DisablePPPoE'                  : true,
        'Network/Wireless(Wi-Fi)'                     : true,
        'Network/Wireless(Wi-Fi)/Auto(DHCP)'          : true,
        'Network/Wireless(Wi-Fi)/Auto(DHCP),manualDNS': true,
        'Network/Wireless(Wi-Fi)/Manual'              : true,
 
        // Servers
        'Servers'                                     : true,
        'Servers/General'                             : true,
        'Servers/Portals'                             : true,
        'Servers/Portals/More'                        : true,
        'Servers/More'                                : true,
 
        // Video
        'Video'                                       : true,
        'Video/More'                                  : true,
 
        // Audio
        'Audio'                                       : true,
        'Audio/More'                                  : true,
 
        // Advanced Settings
        'AdvancedSettings'                            : true,
        'AdvancedSettings/more'                       : true,
 
        // Keyboard Layout
        'KeyboardLayout'                              : true,
 
        // Network Info
        'NetworkInfo'                                 : true,
        'NetworkInfo/Wired(Ethernet)'                 : true,
        'NetworkInfo/PPPoE'                           : true,
        'NetworkInfo/Wireless(Wi-Fi)'                 : true,
 
        // Device Info
        'DeviceInfo'                                  : true,
 
        // Reboot Portal
        'RebootPortal'                                : true,
 
        // Reboot Device
        'RebootDevice'                                : true,
 
        // Reset Settings
        'ResetSettings'                               : true,
 
        // Clear User Data
        'ClearUserData'                               : true,
 
        // Software Update
        'SoftwareUpdate'                              : true
};
  /home/web/system/pages/loader/rules.js content:
/**
 * Customization rules for manual tune
 * @author DarkPark
 * @namespace
 */
RULES = {
        'portalsLoader/useExtPortalsPage'  : true,    // Allow 'MENU' button at loader page ( if 'false' you can't start portals loader page by pressing 'MENU')
        'portalsLoader/allowSystemSettings': true,    // Allow system settings at portals loader page
        'page404/allowSystemSettings'      : true,    // Allow system settings at 404 page
        'hidePortalsURL'                   : false,   // Hide all portals URL at 404 page and portals loader page
        'allowInnerPortal'                 : true     // Allow inner portal at 404 page and portals loader page
};

Set password for System Settings

  • Enable variable check
  • Add in  portal folder
    /home/web/system/variables/vars.ini variable systemSettingsPassword=1234 where 1234 is the value of password (for example) to enter System settings.

Need Help

Dave is an expert on the MAG STB and the author of this article.

Was this article helpful?

Yes No

Sorry to hear that.
How can we improve this article?

We use cookies in order to optimise our website, provide you with the best possible user experience and help us promote our products. Please read our Cookie Policy to find out how we use cookies and how you can control cookies.
By using this website or closing this message, you acknowledge our Privacy Policy and agree to our use of cookies as described in our Cookie Policy.