aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon/base-files/lib/preinit
Commit message (Collapse)AuthorAgeFilesLines
* treewide: use only board_name function to get nameMathias Kresin2017-07-151-1/+3
| | | | | | | | | | | | Do not parse /tmp/sysinfo/board_name, /proc/cpuinfo or the device tree compatible string directly. Always use the board_name function to get the board name. The admswconfig package still reads /proc/cpuinfo directly. The code looks somehow broken and the whole adm5120 which uses this package looks unmaintained. Leave it as it is for now. Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: populate boardname and model earlierMathias Kresin2017-07-151-0/+0
| | | | | | | | | | | | | For targets using the generic board detection and board specific settings in diag.sh, the board name is still unset at the time the set_state() provided by diag.sh is called by 10_indicate_preinit. Change the execution order to ensure the boardname is populated before required the first time. Do the target specific board detection as early as possible, directly followed by the generic one to allow a seamless switch to the generic function for populating /tmp/sysinfo/. Signed-off-by: Mathias Kresin <dev@kresin.me>
* octeon: only copy sysupgrade file if presentJohn Crispin2017-02-151-1/+1
| | | | | | | | | | this caused 'mv: can't rename '/mnt/sysupgrade.tgz': No such file or directory' when running sysupgrade -n Signed-off-by: John Crispin <john@phrozen.org>
* octeon: get rid of /lib/functions/octeon.sh hackery, use sysinfo directlyFelix Fietkau2016-01-292-5/+32
| | | | | | | | Fixes sysupgrade Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48558
* octeon: sysupgrade: support config restore on ERLJohn Crispin2014-12-051-0/+18
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> SVN-Revision: 43524