aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
Commit message (Collapse)AuthorAgeFilesLines
...
* sysupgrade: create state file so procd knows when a sysupgrade is in progressJohn Crispin2013-06-101-0/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36893 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix failsafe via button pressJohn Crispin2013-06-101-1/+1
| | | | | | | | entering failsafe by pressing a button during boot was broken for procd as init Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36891 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: change PATH orderJohn Crispin2013-06-101-1/+1
| | | | | | | | | This allows packages to override busybox applets by placing the new binaries in /usr/{sbin,bin} Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36890 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: use less entropy when generating ULAsSteven Barth2013-06-062-8/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36865 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: change network_find_wan() procedure to ignore default gateways ↵Jo-Philipp Wich2013-05-062-11/+15
| | | | | | in different routing tables git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36553 3c298f89-4303-0410-b956-a3cf2f4a3e73
* sysupgrade: fixes broken pipe error during sysupgadeJohn Crispin2013-05-051-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36548 3c298f89-4303-0410-b956-a3cf2f4a3e73
* preinit: move cmdline failsafe= handling ot the generic codeJohn Crispin2013-04-251-4/+7
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36430 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mount_root: prepare base-filesJohn Crispin2013-04-2533-71/+80
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36429 3c298f89-4303-0410-b956-a3cf2f4a3e73
* boot: make use of kmodloader if it is availableJohn Crispin2013-04-251-1/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36428 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Change default IPv6 config to enable DHCPv6-PDSteven Barth2013-04-222-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36384 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Adapt default network configuration for IPv6Steven Barth2013-04-092-0/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36278 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: firstboot: only ask for confirmation on TTYJonas Gorski2013-03-271-4/+6
| | | | | | Also allow '-y' to force the reset. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36133 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: move sysctl init after bootJo-Philipp Wich2013-03-261-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36131 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix bad start index in previous commitJo-Philipp Wich2013-03-251-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36130 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: change sysctl handlingJo-Philipp Wich2013-03-253-2/+8
| | | | | | | | | Move /etc/init.d/sysctl to index 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36129 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: also apply r36107 to files.oldFlorian Fainelli2013-03-232-3/+3
| | | | | | Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36112 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: sysupgrade fail with eglibcFlorian Fainelli2013-03-222-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36107 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [base-files] sysupgrade was broken as procd was getting killedJohn Crispin2013-03-141-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36031 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [base-files] make basefiles aware of procdJohn Crispin2013-03-1338-70/+705
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36003 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: make firstboot ask for confirmationJonas Gorski2013-02-211-8/+16
| | | | | | | | To prevent accidential resets ask for confirmation (and default to n). Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35712 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: introduce commonly used helper functions for setting ledsGabor Juhos2013-02-182-1/+69
| | | | | | | | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35648 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: minor cosmetic corrections for functions.shGabor Juhos2013-02-171-6/+3
| | | | | | | | | | | | | - update copyright header - remove superfluous shebang left-over from changeset 34794 - unify function declaration [juhosg: keep Vertical Communications' copyright notice] Signed-off-by: Michael Heimpold <mhei@heimpold.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35646 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add macaddr_{add,2bin,setbit_la} helpersGabor Juhos2013-02-162-1/+25
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35614 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add mtd_get_mac_{ascii,binary} helpersGabor Juhos2013-02-162-1/+35
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35612 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: Fix IPv6 early sysctls againSteven Barth2013-02-013-6/+7
| | | | | | * Kernel IPv6 /proc interface inconsistency caused races git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35417 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: Fix race-conditions with IPv6 sysctlsSteven Barth2013-01-294-2/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35368 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: remove IPv6-forwarding setting for all interfacesSteven Barth2013-01-282-2/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35344 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix network_get_prefix6Steven Barth2013-01-222-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35300 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: Set default value for IPv6 forwardingSteven Barth2013-01-222-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35299 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: network.sh: fix typo in previous commitJo-Philipp Wich2013-01-211-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35287 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: network.sh: simplify network_get_prefix6()Jo-Philipp Wich2013-01-211-7/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35286 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: use numerically prefixed uci-defaults namesJo-Philipp Wich2013-01-183-0/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35218 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: rename ULA generation scriptSteven Barth2013-01-172-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add support for ipv6-prefixes in connection with netifdSteven Barth2013-01-154-1/+51
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35168 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: Don't pass '--set-worker /lib/hotplug2/worker_fork.so' ↵Vasilis Tsiligiannis2013-01-112-5/+5
| | | | | | to hotplug2 (#12781) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35095 3c298f89-4303-0410-b956-a3cf2f4a3e73
* sysupgrade: clarify online helpJo-Philipp Wich2013-01-021-12/+15
| | | | | | | | Fixes #12346. Signed-off-by: Paul Fertser <fercerpav@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34975 3c298f89-4303-0410-b956-a3cf2f4a3e73
* sysupgrade: do not require an extra argument after --restore-backupJo-Philipp Wich2013-01-021-6/+7
| | | | | | | | | | | Neither --create-backup nor --restore-backup need an image name (following the backup filename). Treat them in uniform way. Mostly fixes #12346. Signed-off-by: Paul Fertser <fercerpav@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34974 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: Fix a typo in config_list_foreachSteven Barth2012-12-272-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34893 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: ipcalc.sh: fix broken calculations on 64bit systemsJo-Philipp Wich2012-12-231-5/+10
| | | | | | | | Calculate complements by using awk's xor() function with a mask of 0xffffffff instead of relying on the compl() function which appears to produce broken results on certain 64bit architectures. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34875 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add basic procd integration, let procd start (and restart) ubus ↵Felix Fietkau2012-12-222-1/+32
| | | | | | instead of having an ubus init script git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34866 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package/base-files] hot-fix nameclash in sysupgrade: rename pivot() to ↵Mirko Vogt2012-12-211-2/+2
| | | | | | | | | | | | | | supivot() in sysupgrade Sysupgrade defines its very own pivot() function. Prior merging boot.sh and functions.sh sysupgrade just included boot.sh, now it includes functions.sh which defines pivot() as well, however slightly different which causes sysupgrade to fail. This is a hot-fix to unbreak sysupgrade, however those two pivot() functions should actually get merged. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34815 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: we don't need /etc/functions.sh symlink anymoreLuka Perkov2012-12-201-1/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34802 3c298f89-4303-0410-b956-a3cf2f4a3e73
* merge /lib/functions/boot.sh and /lib/functions.shMirko Vogt2012-12-195-149/+139
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34794 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Do not overload mount-call - trying to reduce confusionMirko Vogt2012-12-1914-41/+34
| | | | | | | | | | | The behaviour of calling 'mount' differed depending on whether it called the busybox-mount, the mount of util-linux, the mount defined in /lib/functions.sh and /lib/functions/boot.sh /etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh, both re-defining 'mount'. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34792 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: use json_is_a() in network.shJo-Philipp Wich2012-12-172-8/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34733 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: rework cache handling in network.sh to keep the entire parsed ↵Jo-Philipp Wich2012-12-161-129/+159
| | | | | | ifstatus, use jshn namespaces to support using it concurrently with other jshn users git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34725 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: various enhancements to network.shJo-Philipp Wich2012-12-162-31/+154
| | | | | | | | | | | - 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34722 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add mtd_find_chardev helperGabor Juhos2012-12-121-3/+17
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34648 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Revert "remove function find_mtd_part() from /lib/functions.sh"Mirko Vogt2012-12-121-0/+9
| | | | | | | | | Reverting commit 34641. Function find_mtd_part() is needed by some scripts deployed for certain targets but not including boot.sh after all. Still, all this certainly needs some love. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34642 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove function find_mtd_part() from /lib/functions.shMirko Vogt2012-12-121-9/+0
| | | | | | | | | Since all scripts using this function include /lib/functions/boot.sh - where this function is defined as well - it can be dropped from /lib/functions.sh. Also avoids further confusion about this function being declared and defined in two different places. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34641 3c298f89-4303-0410-b956-a3cf2f4a3e73