I see there are different types of checks for validating user config files when a daemon in /etc/init.d/
is called. For example, from /etc/init.d/network
:
validate_route_section()
{
uci_validate_section network route "${1}" \
'interface:string' \
'target:cidr4' \
'netmask:netmask4' \
'gateway:ip4addr' \
'metric:uinteger' \
'mtu:uinteger' \
'table:or(range(0,65535),string)'
}
What type would I use to allow for extra arguments to be defined by the user?
For example:
extra='-Q -l /var/log/'