summaryrefslogtreecommitdiffstats
path: root/system.c
AgeCommit message (Collapse)Author
2015-07-06Attempt to deal gracefully with allocation failures.Juliusz Chroboczek
These should probably not happen in practice, but having an explicit error message may make debugging out-of-memory situations easier.
2015-01-15system: increase memory field sizes to 64bitJo-Philipp Wich
On an Alix APU board with 4GB of available ram, the total memory is reported as "-179417088" bytes. Increase the ubus field sizes to 64bit integers in order to avoid overflows. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-15system: attempt to parse /proc/device-tree/modelJo-Philipp Wich
Fallback to /proc/device-tree/model if /tmp/sysinfo/model is not available. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-15system: improve system name detectionJo-Philipp Wich
Skip entries like "Processor: 0" which are common on x86, otherwise an "ubus call system board" will just return "system: 0". Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-30system.c: parse quoted version info from /etc/openwrt_releaseFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-16rename the folder option to pathJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-11only add the nandupgrade method when /sbin/upgraded existsJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-11add upgraded support for nand flashingJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-12-09fix copy paste errorJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-11-18add a event broadcast functionJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-11-15debloat and reorganize codeJohn Crispin
split app into procd and init binaries remove log support, this is an external service now Signed-off-by: John Crispin <blogic@openwrt.org>
2013-11-08the automatic service restart should not happen during sysupgradeJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-09-03add a ubus handler that allows sending signals to processesJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-07-08remove superflous defineJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-07-04add trigger supportJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-06-29add support for the system.event nodeJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-06-04merge ubus system namespace from rpcd codebaseJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-04-23fix behaviour during sysupgradeJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-04-07watchdog: add support for starting/stopping watchdog refreshFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-03-13add ubus system objectJohn Crispin