openwrt - system

 

 


Setting

 

Configure file

/etc/config/system

setting

config system
        option hostname 'OpenWrt'

log

config system
    ...
    log_size  16                  # Default: 16. Unit: KiB, circular memory 
    log_type  circular            # Default circular. 另有選項 file, 它會 log 到 "log_file"
    log_file /var/log/messages

    log_ip <IP>       # log 到其他的 syslog 上
    log_port 512      # default port

ntp

config system
        ...
        option timezone 'HKT-8'

config timeserver 'ntp'
        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'
        option enable_server '1'