aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* base-files: remove duplicate stop_service() function.Felix Fietkau2014-04-271-1/+1
| | | | | | | | | It was introduced in commit 2f966e8, "base-files: add a post start hook for procd managed services". Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 40576
* base-files: expose taint flags in /etc/openwrt_releaseJo-Philipp Wich2014-01-311-1/+1
| | | | SVN-Revision: 39437
* base-files: add ucidef_add_switch_port functionLuka Perkov2014-01-231-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 39372
* sysupgrade: do not kill any processes in failsafeJohn Crispin2014-01-171-1/+1
| | | | | | | | sysugrade killed the lock causing failsafe to stop Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 39318
* base-files: add macaddr_canonicalize helper functionGabor Juhos2013-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In commit r38690, the MAC address canonicalization has been converted to use 'tr' instead of 'printf'. This only works if with MAC addresses which uses the 'xx:xx:xx:xx:xx:xx' format. However on some boards, the MAC addresses are stored in different format in the mtd partition. Some vendors are using hyphens or dots as separators instead of colons. Also the leading zeroes may be missing from the individual octets or those are replaced with spaces. Add a new function which can be used to convert these into the 'xx:xx:xx:xx:xx:xx' format. Also update the 'mtd_get_mac_ascii' function to use the new helper. The helper function is based on this code: http://isquared.nl/blog/2010/08/11/Bash-function-to-canonicalize-MAC-addresses/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38803
* base-files: don't enter failsafe if triggered by switchLuka Perkov2013-11-111-1/+1
| | | | | | | | Fixes failsafe issues with switches after r38725. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38770
* base-files: mtd_get_mac_ascii bugfixGabor Juhos2013-11-081-1/+1
| | | | | | | | | | | | | | | | The mtd_get_mac_ascii utility function was broken. This fixes it. - Remove the superfluous include of /lib/functions.sh. The function is already in that file so it is pointless, - only use a variable if the whole key word matches, - don't try to process the MAC address if it is empty, - use 'tr' to canonicalize the MAC address, Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> [juhosg: add more fixes, update commit message] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38690
* base-files: implement -l (--list-backup) sysupgrade parameter to list the ↵Jo-Philipp Wich2013-07-311-1/+1
| | | | | | files that would be backed up SVN-Revision: 37627
* base-files: abort sysupgrade if file specified with --restore-config is not ↵Jo-Philipp Wich2013-07-311-1/+1
| | | | | | found SVN-Revision: 37624
* base-files: implement -T (--test) sysupgrade parameter to verify image ↵Jo-Philipp Wich2013-07-301-1/+1
| | | | | | without actually flashing it SVN-Revision: 37620
* base-files: add mtd_get_part_size helperGabor Juhos2013-07-201-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37475
* base-files/busybox: move ntpd init script from base-files to busyboxLuka Perkov2013-07-171-1/+1
| | | | SVN-Revision: 37383
* base-files: procd is now the init processJohn Crispin2013-06-211-7/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36998
* base-files: procd init is now the default, remove files.oldJohn Crispin2013-06-211-7/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36996
* base-files: remove unnecessary early sysctl-hackSteven Barth2013-06-111-1/+1
| | | | SVN-Revision: 36920
* base-files: set default IPv6 forwarding value to 1Steven Barth2013-06-111-1/+1
| | | | SVN-Revision: 36918
* base-files: use less entropy when generating ULAsSteven Barth2013-06-061-1/+1
| | | | SVN-Revision: 36865
* base-files: change network_find_wan() procedure to ignore default gateways ↵Jo-Philipp Wich2013-05-061-1/+1
| | | | | | in different routing tables SVN-Revision: 36553
* package/base-files: change sysctl handling Move /etc/init.d/sysctl to index ↵Jo-Philipp Wich2013-03-251-1/+1
| | | | | | 00 and add hotplug script that applies interface specific sysctls for interfaces that only appear later - this allows to reliably configure per-interface parameters in sysctl.conf, e.g. to disable ipv6 autoconfig on a specific iface. SVN-Revision: 36129
* base-files: also apply r36107 to files.oldFlorian Fainelli2013-03-231-1/+1
| | | | | | Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 36112
* base-files: sysupgrade fail with eglibcFlorian Fainelli2013-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | With eglibc, "ldd busybox" give us libcrypt.so.1 => /lib/libcrypt.so.1 (0x774be000) libm.so.6 => /lib/libm.so.6 (0x773e4000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x773c0000) libc.so.6 => /lib/libc.so.6 (0x77276000) /lib/ld.so.1 (0x774fe000) Thus /lib/ld.so.1 is not printed by the libs fonction and isn't copied to the 'new' root before pivot root libs() { ldd $* | awk '{print $3}'; } https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/common.sh With uclibc the last line of "ldd busybox" is ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x77ada000) Don't know for musl! This patch replace https://dev.openwrt.org/changeset/19167, as glibc is gone The other way around is to rework libs() Please apply the fix (mine or another) on trunk and AA Might fix https://dev.openwrt.org/ticket/12273 Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 36107
* make basefiles aware of procdJohn Crispin2013-03-131-0/+14
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36003
* base-files: introduce commonly used helper functions for setting ledsGabor Juhos2013-02-181-1/+1
| | | | | | | | | | | | | | | | | | Currently, most platforms define such helpers in their own diag.sh implementation with almost identical code. By factoring out the common ground it's possible to simplify maintainability and homogenize the haptics over multiple platforms (so far as is reasonably practicable, in a next step). [juhosg: - fix led_set_attr parameters in led_timer - add led_morse and status_led_set_morse helpers - add status_led_blink_{preinit,failsafe} helpers] Signed-off-by: Michael Heimpold <mhei@heimpold.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35648
* base-files: add macaddr_{add,2bin,setbit_la} helpersGabor Juhos2013-02-161-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35614
* base-files: add mtd_get_mac_{ascii,binary} helpersGabor Juhos2013-02-161-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35612
* base-files: Fix IPv6 early sysctls again * Kernel IPv6 /proc interface ↵Steven Barth2013-02-011-1/+1
| | | | | | inconsistency caused races SVN-Revision: 35417
* base-files: Fix race-conditions with IPv6 sysctlsSteven Barth2013-01-291-1/+1
| | | | SVN-Revision: 35368
* base-files: remove IPv6-forwarding setting for all interfacesSteven Barth2013-01-281-1/+1
| | | | SVN-Revision: 35344
* base-files: fix network_get_prefix6Steven Barth2013-01-221-1/+1
| | | | SVN-Revision: 35300
* base-files: Set default value for IPv6 forwardingSteven Barth2013-01-221-1/+1
| | | | SVN-Revision: 35299
* base-files: rename ULA generation scriptSteven Barth2013-01-171-1/+1
| | | | SVN-Revision: 35204
* base-files: add support for ipv6-prefixes in connection with netifdSteven Barth2013-01-151-1/+1
| | | | SVN-Revision: 35168
* base-files: Don't pass '--set-worker /lib/hotplug2/worker_fork.so' to ↵Vasilis Tsiligiannis2013-01-111-2/+2
| | | | | | hotplug2 (#12781) SVN-Revision: 35095
* base-files: Fix a typo in config_list_foreachSteven Barth2012-12-271-1/+1
| | | | SVN-Revision: 34893
* base-files: add basic procd integration, let procd start (and restart) ubus ↵Felix Fietkau2012-12-221-1/+1
| | | | | | instead of having an ubus init script SVN-Revision: 34866
* base-files: use json_is_a() in network.shJo-Philipp Wich2012-12-171-1/+1
| | | | SVN-Revision: 34733
* base-files: various enhancements to network.shJo-Philipp Wich2012-12-161-1/+1
| | | | | | | | | | | - support reading inactive gateways and DNS information in network_get_gateway(), network_get_dnsserver() and network_get_dnssearch() by passing "true" as optional last argument - internally cache fetched values to speed up subsequent accesses to the same data, introduce network_flush_cache() to clear them - add some inline function documentation SVN-Revision: 34722
* base-files: add support for the morse LED triggerGabor Juhos2012-11-251-1/+1
| | | | | | | | | | | | Write "delay" and "message" options to their respective files, allowing Morse code message configuration through UCI. The delay (dit length) defaults to 150ms (about 8 words per minute, suitable for beginners). Signed-off-by: Petr Viktorin <encukou@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34380
* base-files: use a natural mount syntaxFlorian Fainelli2012-11-231-1/+1
| | | | | | | | | | Busybox built against musl-libc will choke on these otherwise, besides that it is more natural to use the filesystem type, then options, then name, then mountpoint. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34308
* base-files: skip LEDs handled by rssileds in led init-scriptFlorian Fainelli2012-10-111-1/+1
| | | | | | | | | | | | | | | Without this, /etc/init.d/led will try to set the non-existing 'rssi' trigger. This doesn't harm as the kernel will refuse this setting, but it outputs some ugly log-lines: Jun 24 10:15:19 OpenWrt user.info sysinit: setting up led RSSILOW Jun 24 10:15:19 OpenWrt user.info sysinit: sh: write error: Invalid argument ... In order to avoid this, skip LEDs with trigger = "rssi" in /etc/init.d/led Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 33717
* base-files: release an attached loop device on umountingFlorian Fainelli2012-09-191-1/+1
| | | | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de> SVN-Revision: 33477
* base-files: add uci-defaults script to migrate sysctl.conf (#12196)Jo-Philipp Wich2012-09-171-1/+1
| | | | SVN-Revision: 33448
* base-files: provide a sysupgrade -r (--restore-backup) option as convenience ↵Jo-Philipp Wich2012-08-121-1/+1
| | | | | | wrapper for tar -C / -x(v)zf SVN-Revision: 33147
* move LIB_SUFFIX from base-files to rules.mkFlorian Fainelli2012-08-101-3/+0
| | | | | | Some packages are going to need fixups based on LIB_SUFFIX SVN-Revision: 33080
* base-files: fix option parsing of -F/--force parameterJo-Philipp Wich2012-08-091-1/+1
| | | | SVN-Revision: 33075
* base-files: check for ldd presence and executability (#11991)Florian Fainelli2012-08-081-1/+1
| | | | SVN-Revision: 33057
* base-files: fix detection of standalone lddFlorian Fainelli2012-07-271-1/+1
| | | | | | | | When standalone ldd is selected in config the binary is installed in /usr/bin/ldd. Signed-off-by: Michael Heimpold <mhei@heimpold.de> SVN-Revision: 32891
* base-files: allow wireless ifaces to be part of multiple networksJo-Philipp Wich2012-06-261-1/+1
| | | | SVN-Revision: 32503
* base-files: implement network_get_gateway(), network_get_gateway6(), ↵Jo-Philipp Wich2012-06-171-1/+1
| | | | | | network_find_wan() and network_find_wan6() in /lib/functions/network.sh SVN-Revision: 32397
* base-files: override Build/Compile/Default instead of Build/Compile (fixes ↵Felix Fietkau2012-06-131-1/+2
| | | | | | #11667) SVN-Revision: 32339