]>
git.pld-linux.org Git - projects/rc-scripts.git/log
Elan Ruusamäe [Sun, 1 Sep 2013 20:37:23 +0000 (20:37 +0000)]
release 0.4.7
svn-id: @12716
Kacper Kornet [Mon, 19 Aug 2013 11:13:25 +0000 (11:13 +0000)]
increase timeout for link up
svn-id: @12715
Elan Ruusamäe [Sat, 27 Jul 2013 10:55:41 +0000 (10:55 +0000)]
fix pdksh incompatibility of ok/fail printing
svn-id: @12712
Elan Ruusamäe [Wed, 17 Jul 2013 20:52:15 +0000 (20:52 +0000)]
add apply_sysctl() to load sysctl parameters
uses systemd-sysctl(8) to load, if present, otherwise
loads files in same way as systemd-sysctl(8):
/usr/lib/sysctl.d, /run/sysctl.d, /etc/sysctl.d, /etc/sysctl.conf
where matching files from .d files are not loaded
see sysctl.d(5) for description
svn-id: @12700
Elan Ruusamäe [Tue, 11 Jun 2013 22:19:50 +0000 (22:19 +0000)]
modprobe cache: cache only wanted params
svn-id: @12695
Elan Ruusamäe [Tue, 11 Jun 2013 22:19:05 +0000 (22:19 +0000)]
handle kmod translating `-` to `_`
svn-id: @12694
Elan Ruusamäe [Tue, 11 Jun 2013 22:17:33 +0000 (22:17 +0000)]
unify modprobe alias lookups
svn-id: @12693
Elan Ruusamäe [Sat, 1 Jun 2013 08:09:33 +0000 (08:09 +0000)]
update comment to match code for stuffed statements in meanwhile
svn-id: @12692
Elan Ruusamäe [Sat, 1 Jun 2013 07:59:08 +0000 (07:59 +0000)]
eval halt makes no sense, added in r574 doesn't give any clue either
svn-id: @12691
Elan Ruusamäe [Fri, 31 May 2013 13:11:22 +0000 (13:11 +0000)]
add autologin sample
svn-id: @12690
Elan Ruusamäe [Thu, 30 May 2013 23:48:45 +0000 (23:48 +0000)]
grep fixed strings where appropriate
svn-id: @12689
Elan Ruusamäe [Thu, 30 May 2013 23:30:05 +0000 (23:30 +0000)]
move kernel.panic to sysconfig, deprecating PANIC_REBOOT_TIME
svn-id: @12688
Elan Ruusamäe [Thu, 30 May 2013 23:26:01 +0000 (23:26 +0000)]
use sysctl -q instead of /dev/null redirections
svn-id: @12687
Elan Ruusamäe [Thu, 30 May 2013 23:16:37 +0000 (23:16 +0000)]
/sys is likely already mounted, fgrep /proc/filesystems
svn-id: @12686
Elan Ruusamäe [Thu, 30 May 2013 23:01:09 +0000 (23:01 +0000)]
move hwprofiles enable/disable option to sysconfig/system
old config location still supported (overrides if present)
svn-id: @12684
Elan Ruusamäe [Thu, 30 May 2013 22:55:48 +0000 (22:55 +0000)]
fix typo
svn-id: @12683
Elan Ruusamäe [Thu, 30 May 2013 22:48:05 +0000 (22:48 +0000)]
move $SELINUX variable setup to function
svn-id: @12682
Elan Ruusamäe [Thu, 30 May 2013 21:55:33 +0000 (21:55 +0000)]
revert r12677
arekm says it would break existing configs
svn-id: @12681
Elan Ruusamäe [Thu, 30 May 2013 21:49:37 +0000 (21:49 +0000)]
move mdadm and lvm init to functions for better maintainability
svn-id: @12680
Elan Ruusamäe [Thu, 30 May 2013 20:44:04 +0000 (20:44 +0000)]
drop raidutils (raidstart, /etc/raidtab) support. our geninitrd doesn't support it for long time already
svn-id: @12679
Elan Ruusamäe [Thu, 30 May 2013 20:40:02 +0000 (20:40 +0000)]
rename option to RC_UPTIME and add to default config
svn-id: @12678
Elan Ruusamäe [Thu, 30 May 2013 20:31:19 +0000 (20:31 +0000)]
dhclient seems to be faster than dhcpcd, so prefer it if both present
svn-id: @12677
Elan Ruusamäe [Thu, 30 May 2013 20:30:12 +0000 (20:30 +0000)]
syncing hardware clock to system time on shutdown
svn-id: @12676
Elan Ruusamäe [Thu, 30 May 2013 20:05:51 +0000 (20:05 +0000)]
rc.sysinit: check upstart var before binary check
svn-id: @12675
Elan Ruusamäe [Thu, 30 May 2013 20:04:30 +0000 (20:04 +0000)]
add RC_BOOTTIME option to include uptime counter to all show messages
svn-id: @12674
Elan Ruusamäe [Thu, 30 May 2013 19:52:47 +0000 (19:52 +0000)]
rc.sysinit: add repair_shell moving common code to single place instead of copycat
svn-id: @12673
Elan Ruusamäe [Thu, 30 May 2013 19:31:02 +0000 (19:31 +0000)]
rc.sysinit: allow disabling dmraid
svn-id: @12672
Elan Ruusamäe [Thu, 30 May 2013 19:29:15 +0000 (19:29 +0000)]
rc.sysinit: check vars first, allow disable multipath from kernel cmdline
svn-id: @12671
Elan Ruusamäe [Thu, 30 May 2013 19:23:08 +0000 (19:23 +0000)]
rc.sysinit: do not run evms code if not enabled
svn-id: @12670
Elan Ruusamäe [Thu, 30 May 2013 19:20:13 +0000 (19:20 +0000)]
check vars first before checking fs objects
svn-id: @12669
Elan Ruusamäe [Thu, 30 May 2013 18:23:49 +0000 (18:23 +0000)]
turn off by default RUN_USERPNP and RUN_KERNELPNP
svn-id: @12668
Elan Ruusamäe [Thu, 30 May 2013 18:09:23 +0000 (18:09 +0000)]
rc.sysinit: move /proc/cmdline parsing to single function
svn-id: @12667
Elan Ruusamäe [Thu, 30 May 2013 17:56:52 +0000 (17:56 +0000)]
rc.sysinit: make sure /proc is mounted first
svn-id: @12666
Elan Ruusamäe [Thu, 30 May 2013 17:41:22 +0000 (17:41 +0000)]
rc.sysinit: unify modprobe calls
svn-id: @12665
Elan Ruusamäe [Thu, 30 May 2013 17:36:17 +0000 (17:36 +0000)]
rc.sysinit: cache multiple modprobe -c calls
svn-id: @12664
Elan Ruusamäe [Thu, 30 May 2013 17:33:11 +0000 (17:33 +0000)]
check things first that do not involve fs; use grep -F where regexp match not needed
svn-id: @12663
Elan Ruusamäe [Sun, 26 May 2013 19:20:46 +0000 (19:20 +0000)]
do not use `:>` which aborts whole script on error
special builtins like `:>` abort whole script on error while `>` doesn't
and that is so by POSIX:
http://pubs.opengroup.org/onlinepubs/
9699919799 /utilities/V3_chap02.html#tag_18_08_01
svn-id: @12662
Arkadiusz Miśkiewicz [Wed, 22 May 2013 18:51:10 +0000 (18:51 +0000)]
Protect hardlinks and symlinks.
svn-id: @12661
Elan Ruusamäe [Wed, 15 May 2013 21:07:13 +0000 (21:07 +0000)]
up to 0.4.6
adds better fedora initscripts compat
svn-id: @12659
Elan Ruusamäe [Wed, 15 May 2013 21:04:38 +0000 (21:04 +0000)]
make update-po
svn-id: @12658
Elan Ruusamäe [Tue, 9 Apr 2013 22:07:23 +0000 (22:07 +0000)]
Fedora compat: fix echo_success and echo_failure formatting
svn-id: @12650
Elan Ruusamäe [Tue, 9 Apr 2013 21:48:11 +0000 (21:48 +0000)]
RedHat/Fedora compatibility
turn daemon() and friends into syntax their scripts understand (shell syntax)
if initscript interpreter is set to bash
svn-id: @12649
Elan Ruusamäe [Tue, 9 Apr 2013 21:45:33 +0000 (21:45 +0000)]
revert [12647] it was correct before that
svn-id: @12648
Elan Ruusamäe [Tue, 9 Apr 2013 21:41:56 +0000 (21:41 +0000)]
do not reset RC_LOGGING when IN_SHUTDOWN is not set
refs [6452] and [9733]
svn-id: @12647
Elan Ruusamäe [Wed, 3 Apr 2013 08:51:25 +0000 (08:51 +0000)]
improve fedora compatibility:
add:
- daemon --pidfile=FOO
- killproc -d DELAY
use usleep 50000 instead of 100000, computers are bit faster now :)
svn-id: @12643
Arkadiusz Miśkiewicz [Mon, 18 Mar 2013 08:26:05 +0000 (08:26 +0000)]
Release 0.4.5.5.
svn-id: @12633
Arkadiusz Miśkiewicz [Mon, 18 Mar 2013 08:25:16 +0000 (08:25 +0000)]
Release 0.4.5.5.
svn-id: @12632
Arkadiusz Miśkiewicz [Sat, 9 Mar 2013 23:12:19 +0000 (23:12 +0000)]
AM_CONFIG_HEADER is obsolete.
svn-id: @12630
Arkadiusz Miśkiewicz [Sat, 9 Mar 2013 23:09:07 +0000 (23:09 +0000)]
usbfs is deprecated for some time.
svn-id: @12629
Elan Ruusamäe [Mon, 11 Feb 2013 22:23:36 +0000 (22:23 +0000)]
avoid loading /etc/modules contents twice (modules-load.d/modules.conf is symlink to that)
svn-id: @12626
Jakub Bogusz [Wed, 6 Feb 2013 16:22:05 +0000 (16:22 +0000)]
- clarified (LANG is also whole locale code; LANGUAGE not LINGUAS is used at runtime)
svn-id: @12625
Elan Ruusamäe [Wed, 6 Feb 2013 15:35:41 +0000 (15:35 +0000)]
more complete update for NM skipping. improves [12481] and [12616]
should the `$USERS` be dropped now, i don't see it from current NM generated configs
M init.d/network
svn-id: @12624
Elan Ruusamäe [Wed, 6 Feb 2013 15:32:27 +0000 (15:32 +0000)]
note that lang.csh is broken
svn-id: @12623
Elan Ruusamäe [Wed, 6 Feb 2013 15:27:36 +0000 (15:27 +0000)]
more specific language code specification
svn-id: @12622
Elan Ruusamäe [Tue, 5 Feb 2013 15:04:58 +0000 (15:04 +0000)]
ignore ifcfg-* files which have no DEVICE line present, i.e WiFi networks generated by NM
svn-id: @12616
Arkadiusz Miśkiewicz [Wed, 9 Jan 2013 08:48:49 +0000 (08:48 +0000)]
Store raw dmesg format, so few dmesg features can be used (like -T) when reading from this file.
svn-id: @12613
Arkadiusz Miśkiewicz [Mon, 17 Dec 2012 07:39:46 +0000 (07:39 +0000)]
ethtool example.
svn-id: @12610
Jacek Konieczny [Thu, 13 Dec 2012 17:17:53 +0000 (17:17 +0000)]
SYSCTLDEVICE definition moved when ${DEVICE} is known
svn-id: @12604
Elan Ruusamäe [Wed, 5 Dec 2012 20:54:15 +0000 (20:54 +0000)]
killproc: improve experimental start-stop-daemon based killing.
do not send --retry, in case we specify a signal to kill (usually HUP)
as processes do not usually exit (remove their pid from pidfile) if they receive HUP
svn-id: @12603
Elan Ruusamäe [Sat, 24 Nov 2012 12:34:31 +0000 (12:34 +0000)]
unset locale when using a-z patterns
svn-id: @12602
Elan Ruusamäe [Fri, 23 Nov 2012 16:44:43 +0000 (16:44 +0000)]
remove not needed subshell
svn-id: @12601
Elan Ruusamäe [Sun, 21 Oct 2012 15:14:56 +0000 (15:14 +0000)]
service: systemd wrapper default output cat
svn-id: @12593
Tomasz Pala [Sat, 6 Oct 2012 16:33:59 +0000 (16:33 +0000)]
- another example of zsh supremacy in shell world! fixed 5 yrs old flaw
introduced in rev. 8719 that neither pdksh nor mksh handled properly,
not to mention bash - such process backgrounding caused, when called
from functions/run_cmd (i.e. during service network start), I/O wait
for STDOUT of 'background' job despite >/dev/null redirects; this
effectively leads to 2 seconds delay for each interface at system
startup, cumulating to minutes of pointless waiting on heavy networked
machines! There is alternate workaround: { { sleep 2; } & } >/dev/null
that works as expected under pdksh or mksh, but requires additional &
for zsh and doesn't fix bash behaviour, so please do not touch _THIS_
solution without comprehensive research! -- Aug 29th, 2012, /me
Note: this happens due to $() capture, so plain ifup isn't enough.
svn-id: @12592
Adam Osuchowski [Wed, 20 Jun 2012 13:23:48 +0000 (13:23 +0000)]
- extra sysctl right after mounting /proc
svn-id: @12572
Jan Rękorajski [Mon, 21 May 2012 11:01:24 +0000 (11:01 +0000)]
- don't start udev or fsck / when running inside LXC container
svn-id: @12569
Jan Rękorajski [Sun, 20 May 2012 08:35:04 +0000 (08:35 +0000)]
- fix sysctl setting for interfaces with dot in name, patch by Adam Osuchowski <adwol>
svn-id: @12568
Paweł Gołaszewski [Fri, 20 Apr 2012 09:47:21 +0000 (09:47 +0000)]
- just warn about disabled master interface, don't silently disable vlans
svn-id: @12557
Arkadiusz Miśkiewicz [Wed, 18 Apr 2012 06:29:11 +0000 (06:29 +0000)]
Start ip rules prio from 10000 and increment (not decrement) by 5.
svn-id: @12553
Elan Ruusamäe [Tue, 17 Apr 2012 15:33:48 +0000 (15:33 +0000)]
bonding sample
svn-id: @12551
Jan Rękorajski [Tue, 3 Apr 2012 20:25:28 +0000 (20:25 +0000)]
- updated
svn-id: @12539
Jan Rękorajski [Tue, 3 Apr 2012 20:24:52 +0000 (20:24 +0000)]
- 0.4.5.4
svn-id: @12538
Jan Rękorajski [Tue, 3 Apr 2012 20:21:54 +0000 (20:21 +0000)]
- add uninstall-hook, don't we just love autocrap crapiness?
svn-id: @12537
Jan Rękorajski [Tue, 3 Apr 2012 19:30:32 +0000 (19:30 +0000)]
- provide stdin for the daemons that just must have it,
but stupid ksh closes it on them (for example acpid)
svn-id: @12536
Elan Ruusamäe [Thu, 29 Mar 2012 07:04:31 +0000 (07:04 +0000)]
clean /tmp if it is not on tmpfs
svn-id: @12523
Elan Ruusamäe [Wed, 28 Mar 2012 21:33:34 +0000 (21:33 +0000)]
use is_empty_file function on /etc/mactab
svn-id: @12522
Arkadiusz Miśkiewicz [Wed, 21 Mar 2012 15:53:04 +0000 (15:53 +0000)]
Mount /proc based on fstab first and if that fails fallback to hardcoded values.
svn-id: @12507
Elan Ruusamäe [Sun, 18 Mar 2012 12:11:13 +0000 (12:11 +0000)]
warn about systemd, besides keeping ssh env should came from lang.sh
svn-id: @12497
Elan Ruusamäe [Sat, 17 Mar 2012 09:32:55 +0000 (09:32 +0000)]
as we are redirecting to systemd, detect when systemd redirects back due /sbinservice in .service file
svn-id: @12496
Elan Ruusamäe [Sat, 17 Mar 2012 09:14:15 +0000 (09:14 +0000)]
validate systemd command, before sending it to systemd, to keep "service lighttpd configtest" on working
svn-id: @12495
Elan Ruusamäe [Sat, 17 Mar 2012 08:39:11 +0000 (08:39 +0000)]
- detect if service is in systemd (if LoadError means it's not present in systemd)
- add --no-systemd option to override detect
svn-id: @12494
Elan Ruusamäe [Sun, 4 Mar 2012 21:49:24 +0000 (21:49 +0000)]
fix message printing; pass anything to systemd if it is up (status is valid action too)
svn-id: @12486
Arkadiusz Miśkiewicz [Sun, 4 Mar 2012 20:47:37 +0000 (20:47 +0000)]
Tabs are used here.
svn-id: @12485
Arkadiusz Miśkiewicz [Sun, 4 Mar 2012 20:36:36 +0000 (20:36 +0000)]
systemd takes preference if it is booted/active.
svn-id: @12484
Jan Rękorajski [Sun, 4 Mar 2012 20:12:02 +0000 (20:12 +0000)]
- load kernel modules specified in /etc/modules-load.d/ configs (systemd compat)
svn-id: @12483
Elan Ruusamäe [Sat, 3 Mar 2012 20:35:58 +0000 (20:35 +0000)]
- systemd bits
svn-id: @12482
Jan Rękorajski [Sun, 19 Feb 2012 18:33:15 +0000 (18:33 +0000)]
- skip interfaces configured by NetworkManager, by cactus/at/pld-linux.org
svn-id: @12481
Jan Rękorajski [Sun, 19 Feb 2012 18:25:00 +0000 (18:25 +0000)]
- updated
svn-id: @12479
Jan Rękorajski [Sun, 19 Feb 2012 18:23:43 +0000 (18:23 +0000)]
- 0.4.5.3
svn-id: @12478
Jan Rękorajski [Sun, 19 Feb 2012 18:11:39 +0000 (18:11 +0000)]
- devtmpfs is madatory for udev >= 176
svn-id: @12477
Arkadiusz Miśkiewicz [Fri, 3 Feb 2012 19:23:29 +0000 (19:23 +0000)]
Adding rule by rule causes reverse order to be applied by kernel. We want rules from sysconfig/static-rules to be working in the same order as these were added in that file. The one solution is to use '/usr/bin/tac static-routes' or to use own priorities. We use prio 20000 with step 10 down, to get holes for other, manually added rules.
svn-id: @12474
Kacper Kornet [Wed, 25 Jan 2012 14:40:30 +0000 (14:40 +0000)]
- fix bashism in previous commit
svn-id: @12468
Kacper Kornet [Wed, 25 Jan 2012 14:28:06 +0000 (14:28 +0000)]
- fix daemon --user --fork as they conflicted with each other
svn-id: @12467
Jan Rękorajski [Fri, 13 Jan 2012 13:32:11 +0000 (13:32 +0000)]
- stable sort for BOOTPRIO= devices, so vlan ifaces will be
after their NIC eth counterparts
- treat macvlan and macvtap interfaces specially - they may be created
on almost enything
svn-id: @12466
Arkadiusz Miśkiewicz [Fri, 16 Dec 2011 08:47:24 +0000 (08:47 +0000)]
vgscan/vgmknodes/vgdisplay don't support --sysinit option. Back to ignorelocking for these.
svn-id: @12455
Elan Ruusamäe [Thu, 15 Dec 2011 18:17:23 +0000 (18:17 +0000)]
nicely stop, without error
svn-id: @12454
Elan Ruusamäe [Wed, 14 Dec 2011 17:15:48 +0000 (17:15 +0000)]
- ksh did not like doble minus ("+5--10"), needs spaces ("+5 - -10") to process correctly
svn-id: @12453
Elan Ruusamäe [Wed, 14 Dec 2011 11:33:25 +0000 (11:33 +0000)]
- 0.4.5.2
svn-id: @12451
Elan Ruusamäe [Wed, 14 Dec 2011 11:26:59 +0000 (11:26 +0000)]
update
svn-id: @12450
Elan Ruusamäe [Wed, 14 Dec 2011 11:26:05 +0000 (11:26 +0000)]
- be sure users file is up to date
svn-id: @12449
Elan Ruusamäe [Wed, 14 Dec 2011 07:59:57 +0000 (07:59 +0000)]
doc bits
svn-id: @12448
This page took 0.221837 seconds and 4 git commands to generate.