Attention! Beginning from firmware version 0.2.18 all customizations of embedded portal is necessary to make using source codes of portal. After all customizations complete it is necessary to make compiling and minimization of source code of portal. After compiling and minization all files of portal could be placed in home directory for further image making. Source code of portal (portal-dev-*.tgz is in directory with current release http://soft.infomir.com.ua)
This realizes while editing rules.js file. This files content the list of groups from sections “Settings”, “System settings”, “Loader (page 404)”. Change value true to false to disable/hide any of that sections.
rules.js files is in next directories:
/home/web/
- “Settigns”;/home/web/system/settings
- “System settings”;/home/web/system/pages/loader
- “Loader (page 404)”./** * 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 };