Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:base-system:system_configuration [2023/04/06 07:38] – [System section] bienias87docs:guide-user:base-system:system_configuration [2023/12/10 08:30] – reorganize vgaetera
Line 1: Line 1:
 ====== System configuration /etc/config/system ====== ====== System configuration /etc/config/system ======
 The system UCI subsystem configuration file is located in ''/etc/config/system''. The system UCI subsystem configuration file is located in ''/etc/config/system''.
- +The default settings are:
-===== System section ===== +
-The ''system'' section contains settings that apply to the most basic operation of the system, such as the hostname, the time zone, and how and where to write logging information to. The default settings are:+
  
 <code bash> <code bash>
-uci -N show system.@system[0] +/etc/config/system 
-system.@system[0]=system + 
-system.@system[0].hostname='OpenWrt' +config system 
-system.@system[0].timezone='UTC' + option hostname 'OpenWrt' 
-system.@system[0].ttylogin='0' + option timezone 'UTC' 
-system.@system[0].log_size='64' + option ttylogin '0' 
-system.@system[0].urandom_seed='0'+ option log_size '64' 
 + option urandom_seed '0
 + 
 +config timeserver 'ntp' 
 + option enabled '1' 
 + option enable_server '0' 
 + list server '0.openwrt.pool.ntp.org' 
 + list server '1.openwrt.pool.ntp.org' 
 + list server '2.openwrt.pool.ntp.org' 
 + list server '3.openwrt.pool.ntp.org'
 </code> </code>
 +
 +===== System section =====
 +The ''system'' section contains settings that apply to the most basic operation of the system, such as the hostname, the time zone, and how and where to write logging information to.
  
 These options can be set in the system section: These options can be set in the system section:
Line 51: Line 61:
 <code bash> <code bash>
 cat << "EOF" >> /etc/crontabs/root cat << "EOF" >> /etc/crontabs/root
-0 0 * * * /etc/init.d/system restart+0 0 * * * service system restart
 EOF EOF
 uci set system.@system[0].cronloglevel="9" uci set system.@system[0].cronloglevel="9"
 uci commit system uci commit system
-/etc/init.d/cron restart+service cron restart
 </code> </code>
  
  • Last modified: 2023/12/10 08:41
  • by vgaetera