- Oct 27, 2016
-
-
Chris Blake authored
Currently the reset script will try to run jffs2reset on boards that are running a rw rootfs, such as ext4. This will cause jffs2reset to fail and the board to never reboot while the LED blinks until a manual reboot. This commit does two different things: 1. Disables reset on boards that do not have an overlay mount 2. Disables the Blinking LED after 5 seconds if the board does not support reset Signed-off-by:
Chris Blake <chrisrblake93@gmail.com>
-
- 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>
-
- Oct 19, 2016
-
-
Rafał Miłecki authored
This makes init.d script handle existing UCI entries using the new trigger. It also switches all targets to use its package. Signed-off-by:
Rafał Miłecki <rafal@milecki.pl>
-
- Oct 18, 2016
-
-
Pierre Lebleu authored
Signed-off-by:
Pierre Lebleu <pierre.lebleu@technicolor.com>
-
- Oct 05, 2016
-
-
Koen Vandeputte authored
Before a configuration is generated, an empty file is created to store it in. (required by UCI) If something happens during config generation (power cut, interruption, ..) an empty file exists and it is never regenerated again, causing some daemons to fail starting (NTPD, logread, ..) Fix this by also generating new configs if a critical file is empty. Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
- Oct 04, 2016
-
-
Christian Lamparter authored
This patch removes the non-working wifi driver filter for the wifi detection script. I figured that rather than replacing ${2:-$DRIVERS} with ${1:-$DRIVERS}, it would be better to remove it. Nobody needed it in the previous years. Signed-off-by:
Christian Lamparter <chunkeey@gmail.com>
-
- 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>
-
Matthias Schiffer authored
Now that we know that the password is in /etc/shadow and not in /etc/passwd, we can properly fix the logic for the empty password check. Only 'root::' is an empty password, 'root:x:' and 'root:!:' allow no password login at all. This fixes the empty password warning still showing after the root password has been locked using 'passwd -l root' (e.g. to allow public-key auth only). Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
- Sep 24, 2016
-
-
Jo-Philipp Wich authored
Local variable declarations outside of functions are illegal since the Busybox update to v1.25.0, therfore remove them from the appropriate places. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Sep 19, 2016
-
-
Florian Fainelli authored
Signed-off-by:
Florian Fainelli <f.fainelli@gmail.com>
-
John Crispin authored
print a warning when a shell spawns, telling users to set a root password. Signed-off-by:
John Crispin <john@phrozen.org>
-
- Sep 16, 2016
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Sep 05, 2016
-
-
Karl Palsson authored
oneshot trigger configurations for LEDs are created, but the on/off timing configurations are ignored. generate_config is correctly creating oneshot configs, but the later led script doesn't recognise the trigger details. Fixes: c0c3f2d4 leds: support oneshot as well as timer triggers Signed-off-by:
Karl Palsson <karlp@etactica.com>
-
- 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>
-
Jonas Gorski authored
Instead of board_detect generating the config as a side effect, let config_generate call board_detect as needed. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
- Aug 10, 2016
-
-
Mathias Kresin authored
The pi_* variables and the fs_failsafe_wait_timeout variable are set by the CONFIG_TARGET_PREINIT_* config options. No need to maintain the same values twice. All other fs_ variables were never used. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- 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>
-
Daniel Golle authored
/etc/init.d/boot tried to create /dev/root based on the kernel's cmdline which won't work on any recent targets. Remove that code now that fstools can detect the mounted rootfs based on /proc/self/mountinfo and /dev/root was long gone anyway. Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
- Aug 01, 2016
-
-
Felix Fietkau authored
Network drivers typically allocate memory in atomic context. For that to be reliable, there needs to be enough free memory. Set the value heuristically based on the total amount of system RAM. Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- 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>
-
- Jul 26, 2016
-
-
Etienne CHAMPETIER authored
Previous implementation was blocking the init and breaking halt/reboot/sysupgrade (reported by Daniel Golle) v2: use procd logging, use set -e + trap for error handling Signed-off-by:
Etienne CHAMPETIER <champetier.etienne@gmail.com> Tested-by:
Daniel Golle <daniel@makrotopia.org>
-
Felix Fietkau authored
It is incompatible with multi-profile builds and has not been used in-tree anyway. Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- 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 28, 2016
-
-
Jo-Philipp Wich authored
The vendor NTP pool for the LEDE project got approved, so switch to it now. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- Jun 24, 2016
-
-
Kevin Darbyshire-Bryant authored
dnsmasq's dnssec time checking method now uses a ntp hotplug mechanism, therefore dnsmasq.time is redudant and no longer needs to be explicitly excluded from sysfixtime. Signed-off-by:
Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
-
Daniel Dickinson authored
/etc/os-release is the standard distribution release information file, therefore add it (and image configuration options for fields not previously present in LEDE). Once it is deemed reasonable the non-standard openwrt_release, openwrt_version, and device_info files could be removed (that is with this patch we consider them deprecated in favour of the standard file). Signed-off-by:
Daniel Dickinson <lede@daniel.thecshore.com>
-
- Jun 17, 2016
-
-
John Crispin authored
the symlink no longer gets used since we switched to the block-mount tool. Signed-off-by:
John Crispin <john@phrozen.org>
-
- Jun 07, 2016
-
-
Hannu Nyman authored
Increase the default system log buffer size from 16 kB (built-in default in ubox logd) to 64 kB by setting the option in /etc/config/system. Signed-off-by:
Hannu Nyman <hannu.nyman@iki.fi>
-
- Jun 08, 2016
-
-
Jo-Philipp Wich authored
Record the state of any hardware LED configured through UCI and use that information to revert the state when applying updated settings while maintaining default behaviour of system LEDs. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Jun 07, 2016
-
-
Jo-Philipp Wich authored
The board_detect framework is now able to create the entire system config from scratch so we can finally drop the copy shipped by base-files. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Now that config_generate is able to generate the entire /etc/config/system from scratch we can apply the same logic as used for /etc/config/network; when the configuration file exists already then do not do anything, else generate it from the values provided by /etc/board.json . In order to facilitate that move the file existance checking inside /bin/config_generate and call it unconditionally from /bin/board_detect. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Add support for handling port_state LEDs as used by ADM5120. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-