- 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>
-
Jo-Philipp Wich authored
Add support for specifying hostname and NTP servers via /etc/board.d/ scripts. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Jo-Philipp Wich authored
Attempt to reset all LED states before applying the UCI configuration to avoid leaving disabled LEDs behind in lingering glowing state, e.g. when changing the sysfs entry in the config from one hardware LED to another. 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>
-
Hannu Nyman authored
Centralize setting all version information in include/version.mk * Set RELEASE env variable in include/version.mk instead of toplevel.mk. Stop exporting the variable. * Remove hardcoded release name from /etc/banner Signed-off-by:
Hannu Nyman <hannu.nyman@iki.fi>
-
- May 23, 2016
-
-
John Crispin authored
* if the shell was closed booting continued Signed-off-by:
John Crispin <john@phrozen.org>
-
- May 19, 2016
-
-
Kevin Darbyshire-Bryant authored
Typo, missing space before ] in previous commit caused shell syntax failure and incorrect restoration of time. Signed-off-by:
Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
-
Kevin Darbyshire-Bryant authored
dnsmasq maintains dnsmasq.time across reboots and uses it as a means of determining if current time is good enough to validate dnssec time stamps. By including /etc/dnsmasq.time as a time source for sysfixtime, the mechanism was effectively defeated because time was set to the last time that dnsmasq considered current even though that time is in the past. Since that time is out of date, dns(sec) resolution would fail thus defeating any ntp based mechanisms for setting the clock correctly. In theory the process is defeated by any files in /etc that are newer than /etc/dnsmasq.time however dnsmasq now updates the file's timestamp on process TERM so hopefully /etc/dnsmasq.time is the latest file timestamp in /etc as part of LEDE shutdown/reboot. Either way, including /etc/dnsmasq.time as a time source for sysfixtime is not helpful. Signed-off-by:
Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
-
Jo-Philipp Wich authored
This reverts commit 382779e0. Reverting this commit due to a missing Signed-off-by. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 18, 2016
-
-
Kevin Darbyshire-Bryant authored
dnsmasq maintains dnsmasq.time across reboots and uses it as a means of determining if current time is good enough to validate dnssec time stamps. By including /etc/dnsmasq.time as a time source for sysfixtime, the mechanism was effectively defeated because time was set to the last time that dnsmasq considered current even though that time is in the past. Since that time is out of date, dns(sec) resolution would fail thus defeating any ntp based mechanisms for setting the clock correctly. In theory the process is defeated by any files in /etc that are newer than /etc/dnsmasq.time however dnsmasq now updates the file's timestamp on process TERM so hopefully /etc/dnsmasq.time is the latest file timestamp in /etc as part of LEDE shutdown/reboot. Either way, including /etc/dnsmasq.time as a time source for sysfixtime is not helpful.
-