package system

config package
	option title 'System configuration'

config section
	option name	'system'
	option title	'General system configuration'
	option package	'system'
	option unique	true
	option required true

config variable
	option name	'hostname'
	option title	'Local hostname'
	option section	'system.system'
	option datatype	'hostname'
	option required	true

config variable
	option name	'zonename'
	option title	'Option zonename'
	option section	'system.system'

config variable
	option name	'timezone'
	option title	'Option timezone'
	option section	'system.system'
	option required	true

config variable
        option name 'log_size'
        option section 'system.system'
        option title 'System log buffer size (kiB)'
	option datatype uint

config variable
        option name 'log_ip'
        option section 'system.system'
        option title 'External system log server'
	option datatype ipaddr

config variable
        option name 'conloglevel'
        option section 'system.system'
        option title 'Log output level'
        option description 'Level of log messages on the console'
	option datatype integer

config variable
        option name 'cronloglevel'
        option section 'system.system'
        option title 'Crond log level'
        option description 'Level of log messages for cron daemon'
	option datatype integer


config section
	option name 'led'
	option package 'system'
	option title 'LED Configuration'

config variable
	option name 'name'
	option section 'system.led'
	option title 'LED Name'
	option required true

config variable
	option name 'sysfs'
	option section 'system.led'
	option title 'LED Device'
	option required true

config variable
	option name 'default'
	option section 'system.led'
	option title 'Default state'
	option datatype boolean

config variable
	option name 'trigger'
	option section 'system.led'
	option title 'Trigger'
	option required true

config variable
	option name 'delayon'
	option section 'system.led'
	option title 'On-State Delay'
	option description 'Time (in ms) the LED is on'
	list depends 'trigger=timer'

config variable
	option name 'delayoff'
	option section 'system.led'
	option title 'Off-State Delay'
	option description 'Time (in ms) the LED is off'
	list depends 'trigger=timer'

config variable
	option name 'dev'
	option section 'system.led'
	option title 'Device'
	list depends 'trigger=netdev'

config variable
	option name 'mode'
	option section 'system.led'
	option title 'Trigger Mode'
	list depends 'trigger=netdev'
