Age | Commit message (Collapse) | Author | Files | |
---|---|---|---|---|
2011-07-10 | netfs: cleanup whitespace | Kurt J. Bosch | 1 | |
2011-07-10 | functions: Speed up reboot/shutdown by recognizing killall5 exit code 2 | Kurt J. Bosch | 1 | |
killall5 returns 2 if it didn't find any processes to send to. Using this avoids sleeping longer than needed. This saves another up to six seconds of reboot/shutdown/go-single time. | ||||
2011-07-10 | functions: Make status() return the actual exit code | Kurt J. Bosch | 1 | |
The exit code returned by the given command might be useful/expected, so don't discard but return it. | ||||
2011-07-10 | rc.sysinit: Remove unneeded variables initializations | Kurt J. Bosch | 1 | |
Variables should be empty anyway here. | ||||
2011-07-10 | functions/rc.sysinit: Refactor fsck-redirection to prevent breakage | Kurt J. Bosch | 2 | |
$FSCK_OUT/$FSCK_ERR might not be set when: * unset in some custom sysinit_prefsck hook * calling fsck() from a shutdown hook | ||||
2011-07-10 | rc.sysinit: Declare $FORCEFSCK read-only | Kurt J. Bosch | 1 | |
This prevents sysinit_prefsck hooks from overwriting the value. | ||||
2011-07-10 | Refactor kill_everything, fsck_all and mount_all code | Kurt J. Bosch | 4 | |
Genaral scheme for hook positions is now: run_hook pre_foo if [[$WE_WANT_TO_DO_FOO]]]; then stat_busy "Doing foo" if [[$PRECONDITIONS_FOR_FOO_NOT_SATISFIED]]; then stat_fail else ... stat_done fi fi run hook post_foo rc.sysinit ----------- run_hook pre_foo [[$WE_WANT_TO_DO_FOO]] && status "Doing foo" foo run hook post_foo functions ------------ foo() { [[$PRECONDITIONS_FOR_FOO_NOT_SATISFIED]] && return 1 ... } Rationale Following this scheme as close as possible (without duplicating code and status messages) makes stuff more readable and uniform. Splitting kill_everything() into two new functions stop_all_daemons() and kill_all() also allows customization of either daemons stopping or process killing in an easy way. Suggested-by: Tom Gundersen <teg@jklm.no> | ||||
2011-07-10 | functions/rc.multi: Strip paths from binaries | Kurt J. Bosch | 2 | |
Now that we set PATH in functions, we can use is everywhere. | ||||
2011-07-10 | functions: Add missing quotes in mount_all() | Kurt J. Bosch | 1 | |
Prevent any word splitting where not intended. | ||||
2011-07-10 | functions: Get rid of superfluous braces in udevd_modprobe() | Kurt J. Bosch | 1 | |
Braces are not needed in this case as a variable name can not begin with a number. | ||||
2011-07-10 | rc.sysinit: Fix stat_busy block indentation | Kurt J. Bosch | 1 | |
The general rule is now: Align stat_{fail,done} with stat_busy | ||||
2011-07-07 | Remove usage of head in PKGBUILD | Sebastien Luttringer | 1 | |
Signed-off-by: Sebastien Luttringer <seblu@seblu.net> | ||||
2011-07-07 | changing _rd.d to _rc_d to avoid: | derhoch | 1 | |
/etc/bash_completion.d/rc.d: line 19: `_rc.d': not a valid identifier Signed-off-by: Sebastien Luttringer <seblu@seblu.net> | ||||
2011-07-02 | functions/rc.single: Clean up whitespace | Kurt J. Bosch | 2 | |
2011-06-28 | rc.sysinit: Add status output for mtab and dmesg.log creation | Kurt J. Bosch | 1 | |
2011-06-28 | rc.sysinit: Refactor /etc/mtab symlink detection to avoid empty if clause | Kurt J. Bosch | 1 | |
2011-06-28 | Move export PATH into functions | Kurt J. Bosch | 3 | |
Also sanitze the PATH for rc.single, rc.multi, rc.local and daemons. | ||||
2011-06-28 | functions: Make activate_vgs return 0 if noop for consistency | Kurt J. Bosch | 1 | |
2011-06-28 | Move activate_vgs and crypt stat_busy to the top for consistency | Kurt J. Bosch | 2 | |
2011-06-28 | Move fsck executable check into fsck_all() for consistency | Kurt J. Bosch | 2 | |
2011-06-28 | rc.sysinit: Get rid of eval | Kurt J. Bosch | 1 | |
2011-06-28 | Refactor to get rid of simple if-constucts | Kurt J. Bosch | 2 | |
2011-06-28 | functions: Simplify kill_everything() omit_pid handling | Kurt J. Bosch | 1 | |
All credits go to: Dave Reisner <d@falconindy.com> | ||||
2011-06-28 | functions: Simplify ck_depends() for statement | Kurt J. Bosch | 1 | |
2011-06-28 | Add some comments | Kurt J. Bosch | 2 | |
2011-06-28 | functions: Define $fsckret read-only because exposed to hook | Kurt J. Bosch | 1 | |
2011-06-28 | Fix local statements missing in ck_depends, ck_pidfile, do_unlock, ↵ | Kurt J. Bosch | 2 | |
kill_everything | ||||
2011-06-28 | Fix '>|' not used allways when redirecting to files | Kurt J. Bosch | 2 | |
This avoids errors if one should set the noclobber shell option somewhere (within a daemon script or some custom function). We already had this, but it seems gone lost mostly. | ||||
2011-06-28 | rc.sysinit: Fix setting locale | Kurt J. Bosch | 1 | |
When using process substitution with status(), the resulting /dev/fd/* might get lost before it is actualy used. This happens in case a custom stat_busy() forks a subshell. | ||||
2011-06-28 | rc.sysinit: Fix writing to /dev/urandom | Kurt J. Bosch | 1 | |
Note: The code status "$text" $command > $file writes nothing because there's a &>/dev/null within status(). | ||||
2011-06-28 | functions: Fix indentation | Kurt J. Bosch | 1 | |
2011-06-28 | Fix whitespace | Kurt J. Bosch | 2 | |
2011-06-27 | rc.d: clear text formatting after error | Jacob Okamoto | 1 | |
Patch to fix FS#24879, clearing terminal text formatting after nonexistent daemon script failure in rc.d. Signed-off-by: Jacob Okamoto <jacobokamoto@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no> | ||||
2011-06-27 | Merge remote-tracking branch 'seblu/master' | Tom Gundersen | 1 | |
2011-06-27 | Use _get_comp_words_by_ref in bash completion | Sebastien Luttringer | 1 | |
Thanks Dave Reisner for suggestion Signed-off-by: Sebastien Luttringer <seblu@seblu.net> | ||||
2011-06-25 | network: don't warn for deprecation with no settings | Dave Reisner | 1 | |
Signed-off-by: Dave Reisner <dreisner@archlinux.org> | ||||
2011-06-25 | hwclock: show status | Tom Gundersen | 1 | |
Signed-off-by: Tom Gundersen <teg@jklm.no> | ||||
2011-06-25 | hwclock: use correct timezone | Tom Gundersen | 2 | |
To avoid setting the kernel timezone with an out-of-date /etc/localtime, we pass TZ directly to hwclock. Also document how TIMEZONE and HARDWARECLOCK are optional in rc.conf Signed-off-by: Tom Gundersen <teg@jklm.no> | ||||
2011-06-25 | trivial: silence errors | Tom Gundersen | 1 | |
This is a cleanup of a commit 171da3d. We get errors because /tmp/. and /tmp/.. cannot be deleted on boot. Send them to /dev/null. Signed-off-by: Tom Gundersen <teg@jklm.no> | ||||
2011-06-24 | Simplify /etc/profile.d/locale.sh creation | Kurt J. Bosch | 1 | |
2011-06-24 | Get rid of simple if-constucts by using '&&' | Kurt J. Bosch | 3 | |
2011-06-24 | rc.multi/rc.single: Merge duplicated bootlogd stop code into a function | Kurt J. Bosch | 3 | |
2011-06-24 | rc.sysinit/rc.single: Merge UDev stuff into a function | Kurt J. Bosch | 3 | |
rc.single changes (when coming from multi-user): * avoid settling UDev quietly as in rc.sysinit * modules defined in rc.conf are loaded if missing * minilogd is started before udevd as in rc.sysinit rc.sysinit behaviour is unchanged | ||||
2011-06-24 | Simplify in_array function | Kurt J. Bosch | 1 | |
2011-06-24 | Some more cosmetics | Kurt J. Bosch | 3 | |
2011-06-24 | Simplify random seed file creation | Kurt J. Bosch | 1 | |
2011-06-24 | Fix bootlogd not stopped when booting into runlevel '1' | Kurt J. Bosch | 1 | |
2011-06-24 | rc.single: Avoid rc.multi syslog start error - use minilogd as in rc.sysinit | Kurt J. Bosch | 1 | |
2011-06-24 | Simplify unmounting filesystems | Kurt J. Bosch | 1 | |
This also keeps all tmpfs allways. Some might be in still in use because of a running splash daemon etc. | ||||
2011-06-24 | Simplify rc.single udevadm stuff as in rc.sysinit | Kurt J. Bosch | 1 | |