Gabor Juhos
6c627a266b
base-files: introduce commonly used helper functions for setting leds
...
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
12 years ago
Steven Barth
231f8c2969
base-files: fix network_get_prefix6
...
SVN-Revision: 35300
12 years ago
Jo-Philipp Wich
1941fb309d
base-files: network.sh: fix typo in previous commit
...
SVN-Revision: 35287
12 years ago
Jo-Philipp Wich
3b2db1838a
base-files: network.sh: simplify network_get_prefix6()
...
SVN-Revision: 35286
12 years ago
Steven Barth
847cd984b9
base-files: add support for ipv6-prefixes in connection with netifd
...
SVN-Revision: 35168
12 years ago
Mirko Vogt
4d4b2d3ced
merge /lib/functions/boot.sh and /lib/functions.sh
...
SVN-Revision: 34794
12 years ago
Mirko Vogt
439a869090
Do not overload mount-call - trying to reduce confusion
...
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'.
SVN-Revision: 34792
12 years ago
Jo-Philipp Wich
3339316fbe
base-files: use json_is_a() in network.sh
...
SVN-Revision: 34733
12 years ago
Jo-Philipp Wich
17acf9bf27
base-files: rework cache handling in network.sh to keep the entire parsed ifstatus, use jshn namespaces to support using it concurrently with other jshn users
...
SVN-Revision: 34725
12 years ago
Jo-Philipp Wich
1600ba99e4
base-files: various enhancements to network.sh
...
- 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
12 years ago
Jo-Philipp Wich
dac5ed38b6
base-files: remove route enabled check in lib/functions/network.sh after netifd bump
...
SVN-Revision: 33391
13 years ago
Gabor Juhos
ca857b7a50
base-files: uci-defaults for rssileds
...
Adds capability to add uci-defaults defining RSSI LEDs
Signed-off-by: Daniel Golle <dgolle@allnet.de>
SVN-Revision: 33164
13 years ago
Jo-Philipp Wich
b2e5c5f82e
base-files: implement network_get_dnsserver() and network_get_dnssearch() in /lib/functions/network.sh
...
SVN-Revision: 32531
13 years ago
Jo-Philipp Wich
e654014352
base-files: only consider enabled default routes when finding the wan iface ( #11774 )
...
SVN-Revision: 32525
13 years ago
Jo-Philipp Wich
57a7257569
base-files: implement network_get_gateway(), network_get_gateway6(), network_find_wan() and network_find_wan6() in /lib/functions/network.sh
...
SVN-Revision: 32397
13 years ago
Jo-Philipp Wich
9869b4da3c
base-files: implement network_defer_device() and network_ready_device() wrappers for upcoming netifd iface deferring support
...
SVN-Revision: 32106
13 years ago
Gabor Juhos
eca7502dfd
base-files: add LED specific functions to /lib/functions/uci-defaults
...
SVN-Revision: 31991
13 years ago
Jo-Philipp Wich
c11151bc70
base-files: add network_is_up()
...
SVN-Revision: 31978
13 years ago
Jo-Philipp Wich
bf52cbf108
base-files: let network_get_device() return the l3 interface, introduce network_get_physdev() to obtain the underlying iface (if applicable)
...
SVN-Revision: 31960
13 years ago
Jo-Philipp Wich
8ef9450b37
base-files: add network_get_device() to network.sh
...
SVN-Revision: 31937
13 years ago
Jo-Philipp Wich
f1d04190c5
base-files: introduce /lib/functions/network.sh This file will contain common procedures to deal with network interfaces. Initially provides network_get_ipaddr(), network_get_ipaddr6(), network_get_subnet() and network_get_subnet6() to determine the primary IP addresses or subnets of a given logical interface.
...
SVN-Revision: 31935
13 years ago
Felix Fietkau
6f46704743
base-files: split service related functions off to /lib/functions/service.sh
...
SVN-Revision: 31042
13 years ago
Gabor Juhos
6c61d7cbf1
base-files: remove trailing whitespaces from lib/functions/boot.sh
...
SVN-Revision: 30776
13 years ago
Gabor Juhos
561f4d2840
base-files: add lib/functions/uci-defaults.sh
...
SVN-Revision: 29384
13 years ago
Felix Fietkau
66bcd1d049
base-files: add initial support for mounting overlayfs
...
SVN-Revision: 26207
14 years ago
Michael Büsch
e6100a161b
boot.sh: Tabs are used for indent. Also use tabs in jffs2_ready()
...
SVN-Revision: 25635
14 years ago
Michael Büsch
16a300ea66
base-files: Add "-o noatime" to mount wrapper
...
noatime is cheaper than default relatime.
SVN-Revision: 25634
14 years ago
Jo-Philipp Wich
a8efa34da3
Fix permissions for /etc and other dirs after clean flash ( #6039 )
...
During the first OpenWrt boot after a clean flash (when the jffs2
partition is not yet initialized) tmpfs is used instead of the usual
jffs2 overlay filesystem. If this tmpfs is mounted with default
options, all directories created there (/etc, /etc/config, other
subdirectories in /etc) get permissions 1777 by default, and these
permissions then persist in the created jffs2 at least until
subsequent sysupgrade. Mounting tmpfs with mode=0755 fixes the
permission problem.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
SVN-Revision: 23906
14 years ago
Daniel Dickinson
18b473ca9b
base/block-extroot, base/block-mount: Modified preinit and block-extroot and block-mount so that use of block-mount and block-extroot do not require that block-extroot, block-mount, nor the kernel modules they depend, on are required to included in the image. That is block-extroot and dependencies may now be installed as modules onto the jffs2 part of a squashfs system and it will work. In addition packages which are installed into the jffs2 of a squashfs system may now affect preinit, so long as they do not require execution of commands that occur before the merging of the jffs2 and built-in (squashfs) preinit scripts is done.
...
Thanks jow for the preinit merge stuff!
SVN-Revision: 23110
15 years ago
Daniel Dickinson
1385904dfa
base-files: Add function pi_include the /lib/functions/boot.sh used by preinit, which safely sources files as well as working correctly whether the script using it is a package added to the jffs2 part of a squashfs or built into an image or on some other root filesystem.
...
SVN-Revision: 23099
15 years ago
Jo-Philipp Wich
d6a142375b
base-files: fix a preinit hang in jffs2_ready() when no rootfs_data partition is found ( #7362 )
...
SVN-Revision: 21511
15 years ago
Florian Fainelli
7af8ee0481
change from /jffs to /overlay, patch from Daniel Dickinson
...
SVN-Revision: 20356
15 years ago
Jo-Philipp Wich
1968fb8da3
base-files: force preinit to use busybox mount ( #6797 )
...
SVN-Revision: 20176
15 years ago
Felix Fietkau
9be4598569
add block-extroot, a package for using an external filesystem as rootfs (patch by cshore)
...
SVN-Revision: 19880
15 years ago
Felix Fietkau
56bc02a305
add preinit modularization work by Daniel Dickinson (cshore)
...
SVN-Revision: 19331
15 years ago