John Crispin
1c74d046ed
base-files: create /var/tmp on boot
...
FHS mandates presence of /var/tmp on compliant systems.
The lack of /var/tmp was discovered when using MIT Kerberos libraries
which default to that location for storing credentials cache.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 47219
9 years ago
John Crispin
cf4a0d430b
base-files: fix /tmp/.jail permissions
...
We need a+x rights on the path to the root of the jails
so we can use users other than root (like nobody)
This partly fixes jailed dnsmasq
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
SVN-Revision: 46466
9 years ago
John Crispin
5b23cfab73
base-files: create jail folder on boot
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 45008
10 years ago
John Crispin
562d9f9582
base-files: add a hardware detection layer
...
this allows targets to use the new uci-default helper which will generate
a file called /etc/board.json. a tool called /bin/config_generate can then
be used to generate the default uci settings.
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 42185
10 years ago
John Crispin
3c9cfbeebd
base-files: Remove stale calls to start() in initscripts.
...
based on http://patchwork.openwrt.org/patch/5969/
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41840
10 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
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
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
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
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
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
Steven Barth
33c620773d
base-files: remove unnecessary early sysctl-hack
...
SVN-Revision: 36920
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
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
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
9ae901445b
/etc/functions.sh => /lib/functions.sh
...
SVN-Revision: 32062
13 years ago
Jonas Gorski
80650c9475
base-files: wait for wifi modules to settle
...
On slower devices wifi drivers might take too long for detecting
devices, resulting in the wifi detect call not seeing them.
This was observed on a bcm6348 with bcm4318 wifi. Adding a one second
pause was enough for b43 to expose the device.
SVN-Revision: 31639
13 years ago
Felix Fietkau
5744d736f2
base-files: remove old coldplugging hacks that are no longer necessary since the new main hotplug2 instance calls udevtrigger as well
...
SVN-Revision: 30916
13 years ago
Felix Fietkau
a963a80a38
base-files: the initial hotplug2 instance sometimes misses a few relevant events, e.g. during module load. rerun udevtrigger for the final hotplug2 instance to fix this
...
SVN-Revision: 29862
13 years ago
Jo-Philipp Wich
9fd3886365
base-files: do not pass --set-worker /lib/hotplug2/worker_fork.so to hotplug2 anymore, its statically linked - patch by Viktar Palstsiuk <viktar.palstsiuk@promwad.com>
...
SVN-Revision: 29806
13 years ago
Jo-Philipp Wich
33443d2a8c
base-files: now that we have date -k, adjust the kernel timezone after setting up TZ and localtime
...
SVN-Revision: 29204
13 years ago
Nicolas Thill
93886bc776
package/base-files: use new service wrapper
...
SVN-Revision: 28835
13 years ago
Felix Fietkau
44ba13b578
base-files: load modules early, run wifi detect afterwards and only then process uci defaults
...
this allows uci-defaults scripts to override wifi settings
SVN-Revision: 28733
13 years ago
Jo-Philipp Wich
bfbbe5893f
base-files: use "zonename" system option to symlink /etc/localtime via /tmp/localtime to /usr/share/zoneinfo for glibc and eglibc
...
SVN-Revision: 28306
13 years ago
Jo-Philipp Wich
32731a72c2
base-files: pass conloglevel to syslogd ( #9463 , #9647 )
...
SVN-Revision: 27400
14 years ago
Jo-Philipp Wich
ba1c1e9016
base-files: retrigger usb coldplug after module loading, solves usb_modeswitch on boot and possibly others ( #9352 )
...
SVN-Revision: 26848
14 years ago
Vasilis Tsiligiannis
980190367c
base-files: Use -h instead of deprecated -L for symlink check
...
SVN-Revision: 26485
14 years ago
Vasilis Tsiligiannis
48465d3d63
base-files: fix minor problem in init.d/boot
...
The script tests for the existance of /dev/root with test -e which fails if
/dev/root is a dangling symlink making the call to ln fail.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
SVN-Revision: 26483
14 years ago
Felix Fietkau
541725ce18
stop syslogd before rebooting, otherwise umount might not work properly when logging to a file (thx, puchu)
...
SVN-Revision: 19428
15 years ago
Felix Fietkau
889532d1fd
do not start multiple subshells for applying /etc/uci-defaults. use sh -x for hush compatibility
...
SVN-Revision: 18717
15 years ago
Felix Fietkau
e39038f688
mount debugfs by default
...
SVN-Revision: 18502
15 years ago
Travis Kemen
4c47562a37
extend logging functions
...
SVN-Revision: 17514
15 years ago
Felix Fietkau
2892e2f1d5
base-files: port init.d/boot to new config_get
...
... and localize some variables.
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17157
15 years ago
Gabor Juhos
9b5e65f101
base-files: set rules file for hotplug2 in the boot script ( closes #5235 )
...
SVN-Revision: 16215
16 years ago
Gabor Juhos
463a6f4bda
base-files: update command line for the new hotplug2
...
SVN-Revision: 16154
16 years ago
Felix Fietkau
cbd52550bd
rcS: wait for init scripts to complete before initiating the shutdown (patch from #5032 )
...
SVN-Revision: 15530
16 years ago
Michael Büsch
088ea2fb6e
Support configurations without syslogd/klogd.
...
SVN-Revision: 14937
16 years ago
Florian Fainelli
1716050f0c
allow specifying port where to log ( #2019 )
...
SVN-Revision: 14396
16 years ago
Jo-Philipp Wich
341c1dbdf5
package/base-files: fix chmod of /tmp/.uci, bump package revision
...
SVN-Revision: 13903
16 years ago
Felix Fietkau
2176ae1a6f
fix a race condition which would leave dnsmasq in infinite resolving recursion nirvana
...
SVN-Revision: 12424
16 years ago
Felix Fietkau
37c7e13a5f
move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works for initramfs as well
...
SVN-Revision: 12058
17 years ago
Yuji Mano
0b5f602421
Revert previous bad commit r11512
...
SVN-Revision: 11513
17 years ago
Yuji Mano
5ee48c0b00
Add the PS3 specific utility bl-option, a helper sctipt to get and set bootloader options in flash memory.
...
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
SVN-Revision: 11512
17 years ago
John Crispin
0bf765b362
system now knows which timezone it is in
...
SVN-Revision: 11445
17 years ago
Ralph Hempel
6d4c89c7f5
adding check for /proc/net/vlan/config (==vlan enabled kernel)
...
SVN-Revision: 11132
17 years ago
Florian Fainelli
8d30372bdc
Make the syslog ring-buffer size configurable ( #3204 )
...
SVN-Revision: 10557
17 years ago