Home  Contents

kconfig.setValue

Kconfig Core4 Lua Commands

SYNOPSIS

val = kconfig.setValue(tag [, tag, ...], value)

DESCRIPTION

Sets the value of the entry in the kernel config at the specified path to value.

RETURN VALUE

Returns true on success, false if parameters are invalid.
On error, three values are returned: nil, a string describing the error (The result of the C library call strerror() on the errno code) and the errno number from the standard C library.

EXAMPLE

>  > 
kconfig.setValue("c4s_serial", "c4s_ser_ttyS1", "c4t_ser_speed", 115200) print(kconfig.value("c4s_serial", "c4s_ser_ttyS1", "c4t_ser_speed"))
115200

SEE ALSO