Commit Graph

114 Commits (a43ae30e1bebe4d502ff1da4e715dd4cabcde83c)

Author SHA1 Message Date
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
12 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
Gabor Juhos ff89832fdb package/base-files: add support for the switch LED trigger
SVN-Revision: 29629
13 years ago
Gabor Juhos 3f85c52a3a package/base-files: use case statement in led init script
SVN-Revision: 29628
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 272d95f0f1 base-files: remove rdate integration, add busybox ntpd init script and server list in /etc/config/system The rdate applet proved to be too unreliable to obtain the current time on boot: - public time servers are rare and often unreachable or overloaded - rdate does not daemonize, it needs a network connection the moment it is started, leading to race conditions - the /etc/config/timeserver configuration is overly complex and there is no reliable way to disable rdate invocations - the time protocol as specified in RFC 868 is considered obsolete This commit adds an init script /etc/init.d/sysntpd which starts and stops the busybox ntpd accordingly. The builtin ntpd can be disabled by either disabling the init script, removing the symlink to busybox or by clearing the timeserver list in /etc/config/system.
SVN-Revision: 28612
13 years ago
Felix Fietkau c2b5767572 base-files: move network related scripts to a separate package to make the transition to netifd easier
SVN-Revision: 28495
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
13 years ago
Felix Fietkau 9a227d88dd base-files: do not write to /etc/config/wireless at boot time unless a new interface was found
eliminates unnecessary flash write cycles at every boot

patch by Peter Wagner (tripolar)

SVN-Revision: 27127
13 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
13 years ago
Vasilis Tsiligiannis 980190367c base-files: Use -h instead of deprecated -L for symlink check
SVN-Revision: 26485
13 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
13 years ago
Vasilis Tsiligiannis 1b66204ccd base-files: Autodetect newly added wireless hardware
SVN-Revision: 26166
13 years ago
Florian Fainelli d7fe921089 base-files: support port_state in led config (#6763)
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com>

SVN-Revision: 25172
14 years ago
Gabor Juhos 63c786dde7 base-files: add support for the usbdev LED trigger
SVN-Revision: 24647
14 years ago
Jo-Philipp Wich c0820d3261 base-files: respect .auto option when running coldplug_interface_*() hooks on boot
SVN-Revision: 21588
14 years ago
Jo-Philipp Wich 6a3cbba92e base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot
SVN-Revision: 21389
14 years ago
Vasilis Tsiligiannis a481cafb55 base-files: Remove redundant stopping of watchdog
busybox watchdog applet should stop the watchdog before shutting down

SVN-Revision: 21341
14 years ago
Florian Fainelli 20da5f495f add stop() to watchdog init script, patch from Yury Polyanskiy
SVN-Revision: 21334
14 years ago
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
15 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
15 years ago
Felix Fietkau 10ec4fa292 when rebooting, use lazy umounts as fallback (patch by puchu)
SVN-Revision: 19429
15 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 d46a32fa60 when rebooting, stop the network interfaces last (just before umount) to allow services to shut down properly (thx, puchu)
SVN-Revision: 19427
15 years ago
Felix Fietkau a254a9ff08 base-files: do not warn about nonexistant sysctl overrides (some of them are config dependent)
SVN-Revision: 19375
15 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