aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2011-06-18rc.d: Update bash and zsh completion scriptsSebastien Luttringer2
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-18rc.d: Add started/stopped option to listSebastien Luttringer1
This patch allow rc.d list started and rc.d list stopped which list respectively only started and stopped daemons Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-18rc.d: Update usageSebastien Luttringer1
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-14rc.sysinit: honor blacklist, not load_modulesDave Reisner1
This is some unfinished business from our removal of load-modules.sh. We call modprobe with -ab for the contents of the MODULES array, which should no longer contain ! prefixed module names. --quiet is explicitly ommitted, as users should be aware of any errors that might occur here. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-10Merge remote-tracking branch 'djgera/djgera'Tom Gundersen2
2011-06-09[initscripts] network: Add missing broadcast addressGerardo Exequiel Pozzi2
Without this broadcast address is not set. broadcast= parameter can be empty. In this case the broadcast address is derived by setting all of the interface host bits to one (+). Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-06-10hostname: echo to kernel directlyTom Gundersen1
This allows us to ignore the hostname utility, whose home is currently in flux. Suggested-by: Thomas Bächler <thomas@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Merge branch 'snowman'Tom Gundersen5
Conflicts: rc.multi rc.single Trivial conflict, and fixed a bug introduced when I imported the patches in the first place (oops). Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Add logrotate config file to rotate /var/log/bootEric Bélanger2
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Removed superfluous dollar signEric Bélanger1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Clean up ANSI codes from /var/log/bootEric Bélanger2
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-06Merge remote-tracking branch 'djgera/djgera'Tom Gundersen3
Conflicts: rc.single rc.sysinit Mostly trivial conflicts with Dave's path purging Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-06udev: remove rule generationTom Gundersen1
This has been removed from the udev package, so this code would never be executed. Can finally be removed. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-05hwclock: refactor daemonTom Gundersen3
Before: adjust and set time on boot, adjust rtc every hour, and on shutdown. Now: do not set time on boot, adjust rtc on shutdown. Rationale: 1) We can never ever set the systemtime after system is up and running, as this might make time go backwards (unless we are careful à la ntpd, but we don't want to get into that business). 2) We are under the assumption that exact time is not needed, we are just trying to avoid large, accumulating drifts over time. With the new (significantly simpler) implementation systemtime will be off by the drift since the last clean shutdown. With the old implementation systemtime would be off by the drift since last shutdown (even if it was unclean). Either way the drifts would not accumulate, and a clean reboot would get you a "perfect" time. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-05hwclock: allow TZ to be set in adjtime, only adjust for TZ during bootTom Gundersen1
This allows HARDWARECLOCK to be removed from rc.conf, if you want to rely on /var/lib/hwclock/adjtime (or wherever the file ends up in the future). It assumes the relevant path is on the rootfs. Furthermore, we can assume (since kernel2.6.??) that the rtc modules set the time from rtc themselves, so our job is just to adjust the tz. (FWIW, this coincides with what systemd does). To get the old behavior of not touching the rtc, set it to anything anything else. We should probably have chosen a syntax for this, like IGNORE. Maybe another time... Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-04Be consistent (with mkinitcpio) source naming of /runGerardo Exequiel Pozzi1
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-06-04[initscripts] chmod dmesg.log based on value from dmesg_restrictGerardo Exequiel Pozzi1
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-06-05udev: don't silence settle + trivialTom Gundersen1
If settle finishes too early, we want to know as some needed devices might not yet have been enumerated. Do not pass --quiet. Do not check for running udev before doing trigger/settle. Worst case, if someone does not have udev (which is not supported), they will see some extra status lines, but boot will still continue. Lastly, remove obvious comments (they were repeating the status message in the line below). Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-05remove absolute paths from daemons and rc.dDave Reisner4
These are run from a context where PATH will be set, so defining absolute paths is unnecessary.
2011-06-05add PATH, strip absolute path from binariesDave Reisner3
Since we're declaring a PATH anyways, we may as well use it. This gives us immunity against binaries moving around, as in the recent case of iproute2. A few other minor, associated, tweaks to go along with this: * any -x tests are modified to use 'type -P' to resolve the path before checking for execute permission * any pidof checks are stripped of paths as well.
2011-06-04[initscripts] Avoid error message when switch runlevels.Gerardo Exequiel Pozzi2
Going from multi to single and going back to multi, bootlogd is not running. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-06-05Merge remote-tracking branch 'falconindy/working'Tom Gundersen5
Conflicts: rc.sysinit Conflict with ip move away from /usr
2011-06-05loopback: support separate /usr2011.06.3Tom Gundersen1
The move to iproute2 broke the setup of loopback for users having a separate /usr, as it was not monuted before /usr/bin/ip was called. Together with iprouet2-2.6.38-3, this fixes the problem by using /sbin/ip instead. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-04use $() instead of `` for command substitutionsDave Reisner3
Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-04rc.d/rc.sysinit: whitespace cleanupDave Reisner2
Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-04rc.sysinit: allow exec in /runDave Reisner1
We already have /tmp and /dev/shm as world writeable directories with exec permissions, so it doesn't necessarily make sense to inhibit exec here. There also might be use cases where running one-off programs from /run might make sense. Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-04rc.sysinit: kill off VERBOSE= parameterDave Reisner2
Upstream already supports this via the loglevel= parameter on the kernel cmdline, so we should support using this instead of our own homegrown solution. Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-02MOD_AUTOLOAD: remove from rc.conf2011.06.2Tom Gundersen1
This will no longer have any effect with the new udev package. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-02nisdomainname: remove supportTom Gundersen1
This is as part of deprecating net-tools. nisdoaminname has been moved to yp-tools, and the location of the config file has changed. When using ypbind the doaminname is set as part of the rc script. If needed for other purposes a new rc script should be added. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-01fixup: network: deprecate net-toolsTom Gundersen1
Commit a3314c7697 deleted a bit too much of the comments from rc.conf. This patch restores the comments/example used by netcfg, and clarifies the comments a bit. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-01fixup: stat_busy/stat_done -> statusTom Gundersen1
Commit d8796827 introduced a minor bug, this fixes it. We alse add some indentation to avoid future confusion. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-01agetty: keep baud rate from kernel if possibleTom Gundersen1
To quote the commit to util-linux: "Reuse the speed the kernel configured on the port. If the setting from kernel is useless (tty returns BREAK character) then the specified baud rate (38400) is used." Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-01Merge branch 'snowman'2011.06.1Tom Gundersen1
Conflicts: rc.d Trivial conflict with dave's eval purge. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-01rc.d: Add error message when daemon script is not foundEric Bélanger1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-05-31net: add examplesTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-05-31depraction: MOD_AUTOLOAD and MODULES blacklistingTom Gundersen1
Add comment to note that MOD_AUTOLOAD should always be "yes" and blacklisting is no longer supported in the MODULES array. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-05-31Revert "udev: generate blacklist on boot"Tom Gundersen4
This reverts commit 99d64f5789f01243903be4b32078ec38bdce75fa. We decided not to provide a compatibility layer, but rather require the user to create blacklist files in /etc/modprobe.d manually. Hence, this is no longer needed. The reason was that the compatibliy would not be 1-to-1, so it might be missleading to pretend that it was. Also, most people should not need the blacklisting in the first place. Conflicts: Makefile Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-05-31rc.d: print usage if not enough argumentSebastien Luttringer1
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-31rc.d: Remove cd from the loopSebastien Luttringer1
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-31rc.d: declare ENV as an arrayDave Reisner1
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-23Merge remote-tracking branch 'seblu/master'Tom Gundersen6
2011-05-23rc.d zsh completion detect running daemonsSebastien Luttringer1
This patch adds functionalities of bash completions about running demons Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-22network: deprecate net-tools, add iproute2 supportDave Reisner4
Provide large warnings when net-tools functionality is used. Add documentation in rc.conf for the new iproute2 based config. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-05-22Add a zsh completion script for the command rc.d.Clément Démoulins2
seblu: Fix typo, add vim modeline Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-22rc.d bash completion detect running daemonSebastien Luttringer1
This patch adds sexy features from Auguste Pop bash completion patch. Mainly, detect if a daemon is running and complete accordingly Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-22network/rc.sysinit: remove dead codeDave Reisner2
Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-05-22Add rc.d bash completionSebastien Luttringer2
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-21Improve coloring on light and transparent termSebastien Luttringer2
This patch improve coloring in light and transparent term. It uses tput if available or default color code. It remplace \033 by \e. It's a kind of rollback from commit 65f410, because initscripts are now in bash, and argument "\e isn't recongized in all shells" is not an issue anymore. This is not done in locale.sh script which can be sourced by others shell, so we try to be the more compliant as possible Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-21Add TERM var to rc.d cleaned envSebastien Luttringer1
We need to do this to allow a correct detection of terminal colors in functions sourced by rc.d scripts Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-05-21Add syntax to vim modeline in rc.d scriptSebastien Luttringer1
With new name of script, vim doesn't reconize correctly file format. We need to set it explicitly. Signed-off-by: Sebastien Luttringer <seblu@seblu.net>