Skip to content

version

Calin Crisan edited this page May 5, 2022 · 3 revisions

File Location And Role

The file can be found at /data/etc/version. After a firmware update, it is updated from the file /etc/version.

The file contains information about the current OS name and version.

File Format

This is a simple shell script that should contain only NAME="value" lines. The file is sourced by many init scripts.

Available Variables

OS_NAME

Indicates the full name of the OS. Defaults to thingOS.

OS_SHORT_NAME

Indicates the short name of the OS; this is usually the full name in lower case. Defaults to thingos.

OS_PREFIX

Indicates the prefix used to identify systems running this OS. Defaults to thing.

OS_VERSION

Indicates the current version of the OS.

Clone this wiki locally