Commit Graph

28 Commits (fbd4214bb0727268aa535af5b600d38939ec8dbc)

Author SHA1 Message Date
Adrian Schmutzler 48c1fdd046 treewide: drop shebang from non-executable target files
This drops the shebang from all target files for /lib and
/etc/uci-defaults folders, as these are sourced and the shebang
is useless.

While at it, fix the executable flag on a few of these files.

This does not touch ar71xx, as this target is just used for
backporting now and applying cosmetic changes would just complicate
things.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
4 years ago
Adrian Schmutzler ca63d17531 octeon: remove redundant network setup
No need to have specific setup when default case does the same.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
4 years ago
Stijn Tintel 291d79935e octeon: fix sysupgrade
Sysupgrade was failing due to incorrect replacement of backticks:
/sbin/sysupgrade: /lib/upgrade/platform.sh: line 101: syntax error: missing '))'

Fixes: 0bbfc3dff7 ("octeon: replace backticks by $(...)")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
5 years ago
Adrian Schmutzler 0bbfc3dff7 octeon: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[decapitalized patch subject at submitter's request]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
5 years ago
Rafał Miłecki 641f6b6c26 treewide: use new procd sysupgrade $UPGRADE_BACKUP variable
It's a variable set by procd that should replace hardcoded
/tmp/sysupgrade.tgz.

This change requires the most recent procd with the commit 0f3c136
("sysupgrade: set UPGRADE_BACKUP env variable").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years ago
Rafał Miłecki 62dbe361a1 treewide: when copying a backup file always specify dest name
$CONF_TAR shouldn't be assumed to always point to the sysupgrade.tgz.
This change makes code more generic and allows refactoring $CONF_TAR.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years ago
Rafał Miłecki bf39047872 treewide: don't hardcode "sysupgrade.tgz" file name
1) Add BACKUP_FILE and use it when copying an archive to be restored
   after sysupgrade (on the next preinit).
2) Use CONF_TAR for copying backup prepared by the /sbin/sysupgrade

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years ago
Hans Dedecker 4bd9d331e5 octeon: fix typo in platform.sh
Fix upgrade typo

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
5 years ago
Jonathan Thibault e93e2b6318 octeon: Evaluate board names in alphabetical order
Signed-off-by: Jonathan Thibault <jonathan@navigue.com>
6 years ago
Mathias Kresin e4e984f2a0 treewide: use only board_name function to get name
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>
7 years ago
Mathias Kresin ac3e05c5d7 treewide: populate boardname and model earlier
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>
7 years ago
John Crispin c186a48fca octeon: only copy sysupgrade file if present
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>
7 years ago
Felix Fietkau beda11255b octeon: get rid of /lib/functions/octeon.sh hackery, use sysinfo directly
Fixes sysupgrade

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48558
8 years ago
Jo-Philipp Wich 67e1c87012 all: drop old uci-defaults.sh
Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one
and update all users accordingly.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47867
9 years ago
Jo-Philipp Wich 08848936dd all: remove redundant board.d/00_model files
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47753
9 years ago
Jo-Philipp Wich 21ea086bd3 octeon: switch from uci-defaults to board.d
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47734
9 years ago
John Crispin 1773aa5163 octeon: add er8 sysupgrade support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44902
9 years ago
John Crispin c79ddb3773 octeon: sysupgrade: support config restore on ERL
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 43524
10 years ago
John Crispin 1731d5520e octeon: sysupgrade: rename old kernel after mounting /boot
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 43523
10 years ago
John Crispin 52f1d8ecdc octeon: sysupgrade: fix test for rootfs device
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 43522
10 years ago
John Crispin 6f665ea7b8 octeon: sysupgrade: support config restore
SVN-Revision: 43518
10 years ago
John Crispin 28a9d9853b octeon: sysupgrade: get rootfsdev from kernel cmdline
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 43517
10 years ago
John Crispin 13445d2576 octeon: add detection for edgerouter and edgerouter-pro
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41844
10 years ago
John Crispin a8d532abf2 octeon: add sysupgrade support for the erlite
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41286
10 years ago
John Crispin e6e024f155 octeon: add basic board detection
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41274
10 years ago
John Crispin 3a2040ffee octeon: add support for the octeon mips64 SoC
This is the SoC used be the ESR Lite made by ubnt.com

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37684
11 years ago
Gabor Juhos e7dee4ea87 octeon: R.I.P.
It is broken since ~8 months and nobody takes care of that.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35486
11 years ago
Imre Kaloz fb4eb16283 rename cavium-octeon to octeon
SVN-Revision: 16292
15 years ago