John Crispin
3a9bfa5938
base-files: add a post start hook to the procd init.d api
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41344
11 years ago
Luka Perkov
3fea61afe8
base-files: update copyright headers
...
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 41334
11 years ago
Felix Fietkau
281f415885
base-files: fix argument order to date in sysfixtime so that it also works with musl
...
Seems like the reverse order relies on GNU specific getopt hackery which
musl does not replicate
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41045
11 years ago
John Crispin
47cf6f9cd1
base-files: /etc/rc.button/power should be executable
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 40993
11 years ago
John Crispin
36d0a5e3fb
base-files: add simple shutdown script
...
Since svn rev [38557] we support power buttons, for example
the ACPI power button on x86 machines.
Add a simple shutdown script to /etc/rc.button, to gracefully shutdown
the machine after the power button is pressed.
Tested on x86 and x86_64 in a kvm virtual machine.
Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
SVN-Revision: 40909
11 years ago
John Crispin
44e2de03a4
base-files: calling stop_service before procd_kill.
...
Before this patch, doing `/e/c/network restart' will emit the folloing
error by `ubus network.wireless down "{}"' because netifd already quit
by that time.
Command failed: not found
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 40906
11 years ago
John Crispin
dcf42b40fc
base-files: removes logging
...
Since logd haven't started at this point, logging does not work.
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
SVN-Revision: 40904
11 years ago
Felix Fietkau
c622a37101
base-files: remove duplicate stop_service() function.
...
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
11 years ago
Felix Fietkau
a423055592
base-files: remove duplicate wps button handler ( #15621 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40528
11 years ago
John Crispin
1d5ac95850
base-files: make use of new fstools
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 40416
11 years ago
Felix Fietkau
4a9ea80ef0
/lib/functions.sh: move rarely used mtd and macaddr related functions to /lib/functions/system.sh
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40411
11 years ago
Felix Fietkau
3d275a8deb
base-files: move uci_apply_defaults() to /etc/init.d/boot
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40408
11 years ago
Felix Fietkau
c27c5b9cbc
/lib/functions.sh: move preinit related functions to /lib/functions/preinit.sh
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40404
11 years ago
John Crispin
0dc9d8d6ff
fstools: add the new fstools package
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39895
11 years ago
Imre Kaloz
6a4ecd05f0
the root password should be empty for real, like before
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 39650
11 years ago
John Crispin
7917a87d12
base-files: split /etc/init.d/boot into 2 files
...
this allows us to bind a procd trigger to system.@system[-1]
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39615
11 years ago
Jo-Philipp Wich
6ae1433ab9
base-files: expose taint flags in /etc/openwrt_release
...
SVN-Revision: 39437
11 years ago
Jo-Philipp Wich
73344b9c56
Add sysfixtime init script, replacement of luci_fixtime
...
Simply scan for the most recent file in /etc and set
system time to this file modification time if it's in the future
It allow some time dependent program to work immediatly
without waiting for ntpd to sync
v1: v2: bad approach
v3: simply scan /etc, thanks to Bastian Bittorf for the idea
v4: use sort -n, thanks to Catalin Patulea
v5: use [] instead of [[]], thanks to Andreas Mohr
v6: use openwrt style, thanks to Bastian Bittorf
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
SVN-Revision: 39422
11 years ago
John Crispin
834204bda6
base-files: fix mount-utils incompatibility
...
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
SVN-Revision: 39169
11 years ago
Luka Perkov
3ceb6b3274
base-files: fix whitespaces
...
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39006
11 years ago
Luka Perkov
1df0179b28
base-files: don't enter failsafe if triggered by switch
...
Fixes failsafe issues with switches after r38725.
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38770
11 years ago
John Crispin
c902a76f4d
base-files: fix typo in rfkill script
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38742
11 years ago
John Crispin
871744f5de
base-files: update rfkill script to work with slider buttons
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38729
11 years ago
John Crispin
243179f9f6
base-files: add a generic wps button handler
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38726
11 years ago
John Crispin
76506e7fa4
base-files: Make /etc/init.d/boot restartable
...
Only reload hostname and timezone config on /etc/init.d/boot restart.
Module loading and basic boot setup is only done during boot.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 38670
11 years ago
John Crispin
950428fb1b
base-files: add a post start hook for procd managed services
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38024
12 years ago
John Crispin
3e54dbbf60
base-files: be verbose when entering failsafe due to a button being pressed
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37535
12 years ago
Luka Perkov
67f1d364b8
base-files/busybox: move ntpd init script from base-files to busybox
...
SVN-Revision: 37383
12 years ago
John Crispin
8eb56a88a4
procd: add a small script that handles config reloads until configd is ready
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37248
12 years ago
John Crispin
8069d87d3c
base-files: convert sysntpd init script to procd
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37244
12 years ago
John Crispin
06ae364c3d
base-files: run readlink on initscript name before opening services
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37241
12 years ago
John Crispin
523114e741
base-file: usbfs is no longer mounted under /proc/bus/usb
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37240
12 years ago
John Crispin
9e36e10cf7
base-files: add 2 missing variable defines
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37204
12 years ago
John Crispin
4c43cacce0
base-files: module loading is now handled by ubox/kmodloader
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37003
12 years ago
John Crispin
d0db343fc4
base-files: /etc/init.d/rcS is no longer needed, procd handles this for us now
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37002
12 years ago
John Crispin
533dfc39e3
base-files: drop 2 pointless hotplug trigger stubs
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37001
12 years ago
Steven Barth
33c620773d
base-files: remove unnecessary early sysctl-hack
...
SVN-Revision: 36920
12 years ago
Steven Barth
e2f33bedfa
base-files: set default IPv6 forwarding value to 1
...
SVN-Revision: 36918
12 years ago
John Crispin
9353e01af4
base-files: change PATH order
...
This allows packages to override busybox applets by placing the new
binaries in /usr/{sbin,bin}
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36890
12 years ago
Steven Barth
3f67360012
base-files: use less entropy when generating ULAs
...
SVN-Revision: 36865
12 years ago
John Crispin
811d90ff40
mount_root: prepare base-files
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36429
12 years ago
John Crispin
39469dea7f
boot: make use of kmodloader if it is available
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36428
12 years ago
Steven Barth
4e8f7f37ed
Change default IPv6 config to enable DHCPv6-PD
...
SVN-Revision: 36384
12 years ago
Steven Barth
ea94d66b0f
Adapt default network configuration for IPv6
...
SVN-Revision: 36278
12 years ago
Jo-Philipp Wich
6bddf226d3
base-files: move sysctl init after boot
...
SVN-Revision: 36131
12 years ago
Jo-Philipp Wich
7aace3ee3e
base-files: fix bad start index in previous commit
...
SVN-Revision: 36130
12 years ago
Jo-Philipp Wich
acca7eadc4
package/base-files: change sysctl handling 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.
...
SVN-Revision: 36129
12 years ago
John Crispin
f43b7934d2
make basefiles aware of procd
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36003
12 years ago
Steven Barth
92ad26d1b6
base-files: Fix IPv6 early sysctls again * Kernel IPv6 /proc interface inconsistency caused races
...
SVN-Revision: 35417
12 years ago
Steven Barth
ea7c9c85a8
base-files: Fix race-conditions with IPv6 sysctls
...
SVN-Revision: 35368
12 years ago