Florian Fainelli
1847940688
Fix bug in foregrounding in /etc/init.d/rcS
...
Not using the config_xxx functions correctly. Amended.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 20928
14 years ago
Florian Fainelli
eafa2ec962
option to allow boot to run to completion before starting shell
...
Setting the system variable "foreground" to yes causes the system to run
the init scripts in series and wait for completion.
This is useful if (a) you don't want the user getting into the console
until the system is initialized, or (b) you have things going on in your
scripts that require strict ordering (and no possible race conditions).
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 20841
14 years ago
Jo-Philipp Wich
10c00a6368
base-files: also regenerate wifi config if existing config contains only whitespace
...
SVN-Revision: 20669
14 years ago
Felix Fietkau
3ab30b486f
base-files: reload switch settings on /etc/init.d/network start as well
...
SVN-Revision: 20232
14 years ago
Felix Fietkau
bfeb96126d
add the block-mount package by Daniel Dickinson (cshore), replacing existing automount functionality
...
SVN-Revision: 19877
14 years ago
Lars-Peter Clausen
275b0d8cd4
Don't do lazy unmounting of filessystems at reboot/poweroff. It is unneeded and could couse a broken filesystem if unmounting takes to long. Thanks to Peter Wagner
...
SVN-Revision: 19568
14 years ago
Felix Fietkau
10ec4fa292
when rebooting, use lazy umounts as fallback (patch by puchu)
...
SVN-Revision: 19429
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
14 years ago
Felix Fietkau
d46a32fa60
when rebooting, stop the network interfaces last (just before umount) to allow services to shut down properly (thx, puchu)
...
SVN-Revision: 19427
14 years ago
Felix Fietkau
a254a9ff08
base-files: do not warn about nonexistant sysctl overrides (some of them are config dependent)
...
SVN-Revision: 19375
14 years ago
Felix Fietkau
8ec79b460c
run led init after /etc/init.d/done to keep the configured led settings active after the system has finished booting Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
...
SVN-Revision: 19050
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
Jo-Philipp Wich
cfe1bc11ad
base-files: only try to execute watchdog if binary is present
...
SVN-Revision: 18102
15 years ago
Jo-Philipp Wich
bdaeaafbef
base-files: introduce a ready-to-use /etc/rc.local to let users run custom commands on init without creating custom init scripts
...
SVN-Revision: 17571
15 years ago
Felix Fietkau
91d40a14af
Revert "fix nonhotpluggable networks not being brought up. Closes #2781" (r17527) until we've solved the race conditions it creates
...
SVN-Revision: 17544
15 years ago
Travis Kemen
27915ac778
fix nonhotpluggable networks not being brought up. Closes #2781
...
SVN-Revision: 17527
15 years ago
Felix Fietkau
7d67818ab1
Revert "add ifup -a to boot(), closes #4543 #2781" (r17515) Hotpluggable interfaces are already brought up before /etc/init.d/network boot and this change can break them, if the ifup -a command runs at the wrong time, also starts many interfaces twice, which can lead to issues with PPPoE.
...
SVN-Revision: 17516
15 years ago
Travis Kemen
1776830e64
add ifup -a to boot(), closes #4543 #2781
...
SVN-Revision: 17515
15 years ago
Travis Kemen
4c47562a37
extend logging functions
...
SVN-Revision: 17514
15 years ago
Felix Fietkau
7c32f45749
base-files: clean up init.d/fstab and port it to the new config_get
...
... also remove the unused noauto variable in swapon.
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17159
15 years ago
Felix Fietkau
ae0745e240
base-files: port init.d/led to new config_get
...
... and don't call logger directly, rcS takes care of the correct redirection
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17158
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
15 years ago
Gabor Juhos
463a6f4bda
base-files: update command line for the new hotplug2
...
SVN-Revision: 16154
15 years ago
Felix Fietkau
cbd52550bd
rcS: wait for init scripts to complete before initiating the shutdown (patch from #5032 )
...
SVN-Revision: 15530
15 years ago
Nicolas Thill
2fdeecdb47
add an explicit 'sysinit' tag for logging initscripts output, instead of '' that was logged as is
...
SVN-Revision: 15323
15 years ago
Michael Büsch
20b5626363
Allow running without "logger" installed
...
SVN-Revision: 14938
15 years ago
Michael Büsch
088ea2fb6e
Support configurations without syslogd/klogd.
...
SVN-Revision: 14937
15 years ago
Hauke Mehrtens
3ac154fc9c
On shutdown disabled every mounted swap device. Fixes #4721 Thanks to Angel Marin
...
SVN-Revision: 14770
15 years ago
Florian Fainelli
1716050f0c
allow specifying port where to log ( #2019 )
...
SVN-Revision: 14396
15 years ago
Jo-Philipp Wich
341c1dbdf5
package/base-files: fix chmod of /tmp/.uci, bump package revision
...
SVN-Revision: 13903
16 years ago
Travis Kemen
91d3e6b05b
make option name optional
...
SVN-Revision: 12585
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
John Crispin
12df593510
fixes broken if-then in led init script
...
SVN-Revision: 12411
16 years ago
John Crispin
3403cbe948
remove /etc/functions.sh call from led hotplug script
...
SVN-Revision: 12312
16 years ago
Steven Barth
6b6d027172
added support for the timer-trigger to uci LED support
...
SVN-Revision: 12236
16 years ago
John Crispin
72396bd614
add uci led support - /etc/config/system can hold led info which is applied at boot - adds /sbin/led.sh to set/clear leds via a name defined in /etc/config/system
...
SVN-Revision: 12104
16 years ago
John Crispin
b73eedd62b
work aroung error message during boot if swapon is nt installed
...
SVN-Revision: 12087
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
16 years ago
Nicolas Thill
a760ff5861
fix variable names in tests
...
SVN-Revision: 11911
16 years ago
Yuji Mano
0b5f602421
Revert previous bad commit r11512
...
SVN-Revision: 11513
16 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
16 years ago
John Crispin
0bf765b362
system now knows which timezone it is in
...
SVN-Revision: 11445
16 years ago
Matteo Croce
ac8bf03f8e
create /etc/fstab on boot ( closes #3458 )
...
SVN-Revision: 11225
16 years ago
Matteo Croce
0a1c669ec1
fix some wrong paths
...
SVN-Revision: 11217
16 years ago
Rod Whitby
c715985c97
base-files: Update /etc/init.d/fstab with new location of swapon and swapoff (they moved from /sbin to /usr/sbin)
...
SVN-Revision: 11157
16 years ago
Ralph Hempel
6d4c89c7f5
adding check for /proc/net/vlan/config (==vlan enabled kernel)
...
SVN-Revision: 11132
16 years ago
Matteo Croce
ac5cfeb417
fix swap{on,off} path
...
SVN-Revision: 10863
16 years ago
Travis Kemen
37b0cc9a10
fix restart on platforms without a setup_switch()
...
SVN-Revision: 10846
16 years ago
Travis Kemen
bae7e5bebb
add missing include in restart
...
SVN-Revision: 10794
16 years ago
Matteo Croce
633e548e01
fix typo(2) in watchdog init script
...
SVN-Revision: 10727
16 years ago
Matteo Croce
cd4447d269
fix typo in watchdog init script
...
SVN-Revision: 10726
16 years ago
Florian Fainelli
dd2afbeee3
Start the watchdog daemon if a harware watchdog is present
...
SVN-Revision: 10721
16 years ago
Florian Fainelli
8d30372bdc
Make the syslog ring-buffer size configurable ( #3204 )
...
SVN-Revision: 10557
16 years ago
Florian Fainelli
c3c83c6574
Fix typo
...
SVN-Revision: 10544
16 years ago
Florian Fainelli
62b0af39c7
Also call setup_switch on network restart
...
SVN-Revision: 10540
16 years ago
Felix Fietkau
0cf1a58282
Here comes the new UCI. Enjoy :)
...
SVN-Revision: 10367
16 years ago
Felix Fietkau
d36374c428
init: check permissions on rc.d files
...
We try to unconditionally execute /etc/rc.d/* files, even if they're
not executable - an easy way of temproarily disabling a service. When
this happens, we get a permission denied error on boot.
This change only tries to run execulable startup scripts.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
SVN-Revision: 9607
17 years ago
Felix Fietkau
b443ee0fbb
init: don't start hotplug2 if it doesn't exist
...
The current init script always tries to start hotplug 2, even if
it's not present, so we get an error on boot.
This change checks for the presence of the hotplug2 binary before
trying to start it.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
SVN-Revision: 9606
17 years ago
Gabor Juhos
131d358fc3
6tunnel: move init/config files to the right place
...
SVN-Revision: 9453
17 years ago
Florian Fainelli
f038ae8671
Mark 6tunnel as executable, avoids ": /etc/init.d/rcS: line 8: /etc/rc.d/S466tunnel: Permission denied"
...
SVN-Revision: 9424
17 years ago
Florian Fainelli
64734f94c7
Add 6tunnel configuration for tunnel brokers based configuration (not SiXXS), disabled by default
...
SVN-Revision: 9259
17 years ago
Rod Whitby
ac8f66b987
base-files: Added support for swap configuration in /etc/config/fstab
...
SVN-Revision: 8947
17 years ago
Rod Whitby
cd95009fc6
Added support for /etc/default/fstab - a means of automatically mounting devices on boot.
...
SVN-Revision: 8916
17 years ago
Felix Fietkau
ca32501abe
add --no-coldplug to the hotplug2 process started by /etc/init.d/boot - should prevent duplicate ifup actions. thx, ffrrrr.
...
SVN-Revision: 8864
17 years ago
John Crispin
206998371f
wireless config gets regenerated not only when it does not exist, buit also if it is 0 len
...
SVN-Revision: 8149
17 years ago
Felix Fietkau
f95db8bac8
fix a warning ( #1800 )
...
SVN-Revision: 7809
17 years ago
Felix Fietkau
c09dc20f2c
replace the hotplug2 fork handling hack with a better solution implemented in upstream (thanks, iSteve)
...
SVN-Revision: 7786
17 years ago
Felix Fietkau
8c41e51e92
fix failsafe on broadcom, send netlink events in diag when running linux 2.6
...
SVN-Revision: 7722
17 years ago
Felix Fietkau
4f16e9cc3e
keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network)
...
SVN-Revision: 7643
17 years ago
Florian Fainelli
440f537f48
Add the conloglevel option ( #1682 )
...
SVN-Revision: 7613
17 years ago
Mike Baker
4a41439c46
unified preinit environment
...
SVN-Revision: 7173
17 years ago
Mike Baker
f0fa2a3de5
unmount filesystems at shutdown
...
SVN-Revision: 7166
17 years ago
Mike Baker
291420a8f3
add K* scripts to be run at shutdown
...
SVN-Revision: 7163
17 years ago
Mike Baker
fa0568fdcb
move syslogd and klogd to init.di/boot script, add remote logging support
...
SVN-Revision: 7160
17 years ago
Felix Fietkau
76184df0e6
fix networking on broadcom and possibly other targets as well ( #1658 )
...
SVN-Revision: 7149
17 years ago
Felix Fietkau
ca7a815602
use hotplug2 for serializing hotplug events on 2.6
...
SVN-Revision: 7097
17 years ago
Felix Fietkau
9507f89800
create /dev/root on boot - fixes cf2nand on rb532
...
SVN-Revision: 7066
17 years ago
Felix Fietkau
65113c481f
we can use some more hotplug processes here...
...
SVN-Revision: 6980
17 years ago
Felix Fietkau
d56750665c
use rc.common for usb init script
...
SVN-Revision: 6873
17 years ago
Florian Fainelli
2266aad2ec
Limit the number of hotplug childrens
...
SVN-Revision: 6804
17 years ago
Felix Fietkau
2c62bddcfe
Add an 'Image Configuration' menu to menuconfig Packages can export a list of config options with labels and data types through the metadata. The selected config values will be exported to the target filesystem in /etc/uci-defaults and applied on the first boot.
...
SVN-Revision: 6572
17 years ago
Felix Fietkau
b77680287e
add new config option for the hostname in /etc/config/system ( fixes #1302 , #1438 )
...
SVN-Revision: 6532
17 years ago
Felix Fietkau
a44c286fdb
nuke mdev and replace it with hotplug2 :)
...
SVN-Revision: 6512
17 years ago
Felix Fietkau
84bec9f9cf
add support for if{down,up} -a and implement proper start/stop/restart for /etc/init.d/network
...
SVN-Revision: 6455
17 years ago
Felix Fietkau
e2c94324e7
make usb init script executable
...
SVN-Revision: 6203
18 years ago
Felix Fietkau
ade7e1b7cf
use syslogd -C16 instead of syslogd -C 16 (busybox 1.4 compatibility)
...
SVN-Revision: 6202
18 years ago
Florian Fainelli
78af4adbc5
Mount usb filesystem at startup ( #1077 )
...
SVN-Revision: 6163
18 years ago
Felix Fietkau
656412d1a3
Forward port whiterussian resolv.conf changes /etc/resolv.conf links to /tmp/resolv.conf /tmp/resolv.conf links to /tmp/resolv.conf.auto by default (which is where the ISPs nameserver is in) When dnsmasq starts, it replaces /tmp/resolv.conf with a file pointing to 127.0.0.1
...
SVN-Revision: 6043
18 years ago
Felix Fietkau
59a06c71cb
rename default/ to files/
...
SVN-Revision: 5622
18 years ago