Different types of validation of variable types in /etc/init.d/foo

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:

  uci_validate_section network route "${1}" \
    'interface:string' \
    'target:cidr4' \
    'netmask:netmask4' \
    'gateway:ip4addr' \
    'metric:uinteger' \
    'mtu:uinteger' \

What type would I use to allow for extra arguments to be defined by the user?

For example:

extra='-Q -l /var/log/'

Recognized types:

For your extra option you likely want string as it essentially is arbitrary input.


Thanks @jow.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.