- May 14, 2017
-
-
Alberto Bursi authored
uci_set_leds_ataport() allows to set a led to show activity on a specific (s)ata port, which is needed for devices that have a Sata led for each sata port. The led trigger is from the 834-ledtrig-libata.patch LEDE kernel patch. uci_set_leds_usbhost() allows to set a led to show total usb activity. Signed-off-by:
Alberto Bursi <alberto.bursi@outlook.it> [Jo-Philipp Wich: use a single underscore to denote private functions] Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Alberto Bursi authored
create a function with code common to all led functions, create another function with code common to functions setting a simple led trigger, restore alphabetical order in function names. Signed-off-by:
Alberto Bursi <alberto.bursi@outlook.it> [Jo-Philipp Wich: use a single underscore to denote private functions] Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 03, 2017
-
-
Jo-Philipp Wich authored
Commit 2036ae4 (base-files: support hostname and ntp servers through board.d) was supposed to implement these procedures but lacked the required changes to uci-defaults.sh. Add the missing procedures now to fix config generation on targets relying on hostname or NTP server presetting. Fixes FS#754. Reported-by:
Cristian Morales Vega <cristian@samknows.com> Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Mar 22, 2017
-
-
Felix Fietkau authored
This will be used to replace all those nasty board specific scripts that do basically the same thing Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Mar 11, 2017
-
-
Mathias Kresin authored
Overwrite an already set proto if a new one is passed to _ucidef_set_interface() similar to what is done for the interface. It is required when using ""ucidef_set_interface_wan 'ptm0' 'pppoe'" after some initial wan interface configuration is already done by ucidef_add_switch. The "json_is_a protocol string" guard is meant to not reset an earlier set interface proto in case something like "ucidef_set_interface_lan 'eth0'" is used afterwards. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Feb 01, 2017
-
-
Jo-Philipp Wich authored
Instead of only using tagged CPU port configurations when more than one VLAN is present on the switch, always emit tagged configurations unless a board explicitely opts out of this behaviour by using the previously introduced [0-9]u@netdev syntax. Emitting default tagged configurations has the following benefits: - Relation of switch vlans to netdevs is easier to understand, especially for multi-cpu-port switches - Adding additional VLANs (e.g. to break out a LAN port for other purposes) becomes easier as users are not forced to change the existing untagged VLAN to tagged and the existing ifname notation from ethX to ethX.Y anymore, drastly reducing the likelyhood of soft-bricks. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Jan 30, 2017
-
-
Mathias Kresin authored
The condition is always true due to the literal string followed the -n test parameter. A model name set by target scripts always gets overwritten this way. Change the condition to check for an already existing destination file as it was before 5e85ae9e ("base-files: fix error message during boot"). Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Jan 06, 2017
-
-
Felix Fietkau authored
It is used on NAND devices in case hotplug is too slow Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Jan 05, 2017
-
-
Yousong Zhou authored
Signed-off-by:
Yousong Zhou <yszhou4tech@gmail.com>
-
- Dec 20, 2016
-
-
Rafał Miłecki authored
This adds support for install-overlay define. When used in package it allows installing files to a special directory that gets copied to the root when installing it. It allows overwriting files provided by other packages. Signed-off-by:
Rafał Miłecki <rafal@milecki.pl>
-
- Dec 04, 2016
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Nov 21, 2016
-
-
Jonas Gorski authored
Packages that do a killall <cmd> with the same name as the init script will fail the prerm step when the service isn't running. Do make them removable without having to restart the service, ignore the return code. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com> Acked-by:
Jo-Philipp Wich <jo@mein.io>
-
Jonas Gorski authored
Properly stop/start services on upgrade, but don't change the enabled state. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com> Acked-by:
Jo-Philipp Wich <jo@mein.io>
-
- Nov 19, 2016
-
-
Felix Fietkau authored
Use fwtool to extract it, only require metadata to be present if the platform sysupgrade script sets REQUIRE_IMAGE_METADATA=1 Image metadata is in JSON format and contains a list of supported devices, along with version information that could be displayed by a UI later before the actual upgrade happens. Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Nov 02, 2016
-
-
Jo-Philipp Wich authored
Introduce support for a new [0-9]u@netdev syntax to ucidev_add_switch() to let board.d network files request default network switch configurations which do not use tagged CPU ports. This commit itself has no effect on generated configurations at the moment since we still emit untagged configurations by default but it allows boards to opt-out from default tagged configs in case we start emitting tagged settings by default. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Oct 26, 2016
-
-
André Valentin authored
mkfs.ext4 und losetup are needed for sysupgrade support on mmc devices with automatic rootfs split (loopback device usage). Signed-off-by:
André Valentin <avalentin@marcant.net>
-
- Oct 22, 2016
-
-
Rafał Miłecki authored
This helper allows using usbport trigger directly. It requires usbport compatible syntax and supports specifying multiple USB ports, e.g.: ucidef_set_led_usbport "usb" "USB" "devicename:colour:function" "usb1-port1" "usb2-port1" This adds a proper object to the board.json, e.g. "usb": { "name": "USB", "type": "usbport", "sysfs": "devicename:colour:function", "ports": [ "usb1-port1", "usb2-port1" ] } and supports translating it into uci section. Signed-off-by:
Rafał Miłecki <rafal@milecki.pl>
-
- Sep 26, 2016
-
-
Matthias Schiffer authored
IPKG_INSTROOT must be respected for offline removal (used for per-device rootfs). Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
- Aug 14, 2016
-
-
Jonas Gorski authored
Due to an empty pi_ifname in the generic failsafe setup, the deconfig never removed the failsafe networking interface, causing broken networking later on. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
- Aug 13, 2016
-
-
Jonas Gorski authored
Also configure the switch based on the failsafe config, and create the failsafe interface as tagged if necessary. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
Jonas Gorski authored
In preparation of properly setting up vlans and switches, add support for configuring failsafe on a vlan tagged interface. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
Jonas Gorski authored
Make use of the existing board.d to autodetect lan ifname in a generic way. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
Jonas Gorski authored
Move preinit interface and ip config to its own function to allow calling it from more than one place. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
Jonas Gorski authored
Allow passing a filename to change the location of the generated board.json. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
- Aug 04, 2016
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
Mathias Kresin authored
sysupgrade immediately reboots after flashing an image and doesn't allow to unmount filesystems. At least in case the image used for sysupgrade is stored on a FAT formatted usb flash drive, the following warning is printed during the next mount of the flash drive: FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. Although a data corruption during read operations is unlikely, there is no need to scare the users. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Jul 24, 2016
-
-
Conn O'Griofa authored
Treat 'relayd' as an essential service to avoid connection interruptions during sysupgrade on devices configured as a pseudobridge. Signed-off-by:
Conn O'Griofa <connogriofa@gmail.com>
-
- Jun 30, 2016
-
-
Etienne CHAMPETIER authored
This commit: 1) seed /dev/urandom with the saved seeds as early as possible (see /lib/preinit/81_urandom_seed) 2) save a seed at /etc/urandom.seed if it doesn't exists 3) save a new seed each boot at "system.@system[0].urandom_seed" (see /etc/init.d/urandom_seed) We use getrandom() so we are sure /dev/urandom pool is initialized Seed size is 512 bytes (ie /proc/sys/kernel/random/poolsize / 8) it's the same size as in ubuntu 14.04 and all systemd systems Seeding /dev/urandom doesn't change entropy estimation, so we still have "random: ubus urandom read with 4 bits of entropy available" messages in the logs, but we can now ignore them if after "urandom-seed: Seeding with ..." message Saving a new seed on each boot is disabled by default to avoid too much writes without user consent v2: log preinit messages to /dev/kmsg v3: use non generic function name for logging, as /lib/preinit/ files are all sourced together in /etc/preinit v4: after a lot of discussion on the ML, use a uci config param v5: config param is now the path of the seed Signed-off-by:
Etienne CHAMPETIER <champetier.etienne@gmail.com> Acked-by:
Jo-Philipp Wich <jo@mein.io>
-
- Jun 07, 2016
-
-
Jo-Philipp Wich authored
Add support for handling port_state LEDs as used by ADM5120. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 27, 2016
-
-
Jo-Philipp Wich authored
Some package postinstall operations, e.g. those emitted by the LuCI build system, source and delete the uci-defaults themselves upon package insteall, causing the generic defaults apply code to trigger shell errors like: .../luci-app-ddns.postinst: .: line 130: can't open './40_luci-ddns' Rework the generic apply code to check the existence of the uci-defaults script before trying to source it, use sed to prefilter the list of entries from the control file and perform the directory change in a subshell, avoiding the need for cd $OLDPWD. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 24, 2016
-
-
Jo-Philipp Wich authored
Generalize the partition discovery in sysupgrade in order to fix sysupgrade and config backup/recovery on MMC block devices which use a different naming scheme compared to mtdblock or sd* devices. The change also adds the find applet to the ramdisk utilities so that upgrade code can rely on it. The commit is based on the initial submission by Russell Senior at http://patchwork.ozlabs.org/patch/625440/ . Signed-off-by:
Russell Senior <russell@personaltelco.net> Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 23, 2016
-
-
John Crispin authored
* if the shell was closed booting continued Signed-off-by:
John Crispin <john@phrozen.org>
-
- May 04, 2016
-
-
Daniel Golle authored
Packages may install scripts into /etc/uci-defaults to be executed once after installation, usually at the first boot of the target. This works fine if the package was installed to the rootfs during build or using the ImageBuilder. If the package is installed using opkg during run-time uci-defaults were applied only after a reboot of the device. Avoid the need to reboot by evaluting the package's uci-defaults in default-postinst. Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
- Apr 29, 2016
-
-
John Crispin authored
Signed-off-by:
John Crispin <john@phrozen.org>
-
- Apr 19, 2016
-
-
John Crispin authored
Signed-off-by:
Daniel Dickinson <openwrt@daniel.thecshore.com>
-
- Apr 11, 2016
-
-
John Crispin authored
preinit spews out this message "cat: can't open '/proc/device-tree/model': No such file or directory" Signed-off-by:
John Crispin <john@phrozen.org>
-
- Mar 24, 2016
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org>
-
- Mar 10, 2016
-
-
John Crispin authored
base-files: add function ucidef_set_interface_raw to enable default configuration on interfaces other than lan and wan. Signed-off-by:
Micke Prag <micke.prag@telldus.se> SVN-Revision: 48976
-
- Mar 07, 2016
-
-
Felix Fietkau authored
We are now shipping a DSL firmware, do not set it by default to some file name. Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48941
-
- Feb 26, 2016
-
-
Jo-Philipp Wich authored
Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48806
-