Commits

Show all
Author Commit Message Labels Comments Date
Thomas Bächler
Fix in_array function In in_array a check might look like [ "!" = "@" ], which will fail because of the !, so make this check look like [ "x!" = "x@" ]. Also, when an entry is prefixed with !, it should be handled as if it was not in the array.
Dan McGee
Splint recommended cleanups to minilogd Signed-off-by: Dan McGee <dan@archlinux.org>
Dan McGee
Add minilogd to gitignore Signed-off-by: Dan McGee <dan@archlinux.org>
Dan McGee
Don't background the udevadm trigger call This operation doesn't block for more than a half second, and backgrounding it invites race conditions if the settle operation ends up actually getting executed first. My slice won't even boot without this change. Signed-off-by: Dan McGee <dan@archlinux.org>
Dan McGee
Allow skipping of all hardware clock adjustments For virtualized machines, the hardware clock doesn't actually exist, so all hwclock calls fail and print error messages during system startup, shutdown, and the hourly adjtime cronjob. By explicitly looking for HARDWARECLOCK to be set to 'UTC' or 'localtime', all other values will result in hwclock calls being skipped (e.g. set the variable to 'none'). Signed-off-by: Dan McGee <dan@archlinux.org>
Dan McGee
Remove USEDIRECTISA and associated code man hwclock implies this option is rarely necessary, and (almost) all systems Arch supports surely have a /dev/rtc device and load the rtc driver in the kernel. Even if this is not available, hwclock will fall back to direct I/O requests anyway. As a side note, the adjtime cronjob didn't even respect this setting anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
James Rayner
network: bring interfaces up right away in ifup Allow association to begin, for wireless interfaces Ref: FS#13299 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Gerardo Exequiel Pozzi
Mount /dev as tmpfs instead of ramfs for new udev-145 * ramfs not support POSIX ACL that is necessary for using with the current udev-145 and make the rule 70-acl.rules usable, when ConsoleKit is available. * tmpfs support POSIX ACL Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Roman Kyrylych
Merge branch 'master' of ssh://archlinux.org/srv/projects/git/initscripts
Allan McRae
Consistent capitalization of locale Make the capitalization "UTF-8" part of the locale field in rc.conf match that used in /etc/locale.gen (FS#15825) Signed-off-by: Allan McRae <allan@archlinux.org>
Aaron Griffin
Enable in_array for prefixed daemons Previous code has issues with ! and @ prefixed DAEMONS Original-by: Florian Pritz <bluewind@xssn.at> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Aaron Griffin
Revert previous commit chunk: in_array fixes Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Jim Pryor
Fix stty/tput usage for columns This corrects the usage of stty and tput under various non-TTY conditions such as under cron and redirected output. [Aaron: Also corrected my USECOLOR bug I introduced last patch] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Aaron Griffin
Fix array syntax for DAEMONS loop Whoops! Noticed-by: Florian Pritz <f-p@gmx.at> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Jonathan Liu
Allow creation of bridges with bonded interfaces Ref: FS#10616 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Roman Kyrylych
Fixed warning about bootbits with encrypted swap and util-linux-ng 2.16 Afte update to util-linux-ng the following message is shown during boot: mkswap: /dev/mapper/swap: Warning: don't erase bootbits sectors on whole disk. Use -f to force. The change was introduced by this commit: http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commit;h=ff3bed806863d1c2075d0efda70b39ea6af9ecba From man mkswap: -f Force - go ahead even if the command is stupi…
Aaron Griffin
functions: refactor for non-tty output This commit should allow rc.d scripts to be run from non-tty's, such as a cron job Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Aaron Griffin
Missed a return value check in previous commit Whoopsie Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Marco Lima
Add _netdev support to netfs (also add glusterfs support) The system-wide mount will no longer mount items in fstab marked as _netdev (requires a network device). These _netdev items are handled by the netfs daemon now. Additionally, add support for glusterfs :) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Gerardo Exequiel Pozzi
Shutdown non-rc.conf daemons first at rc.single To match with commit 7f1bd75ee6aaffddf47e704c46fbab5396b7dd19 for rc.shutdown. Flip the order in which daemons are shutdown. First we scan for all daemons that are NOT in rc.conf and shut those down (order is based on ls, so it is dependent on LC_COLLATE). Afterwards, we shut down all daemons in rc.conf, in order. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Aar…
Aaron Griffin
Shutdown non-rc.conf daemons first Flip the order in which daemons are shutdown. First we scan for all daemons that are NOT in rc.conf and shut those down (order is based on ls, so it is dependent on LC_COLLATE). Afterwards, we shut down all daemons in rc.conf, in order Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
kraft
functions: Add -- to stat_append printf printf causes scripts to fail when argument starts with a dash Calling stat_append "- hello" causes the following error: /etc/rc.d/functions: line 99: printf: - : invalid option printf: usage: printf [-v var] format [arguments] [FAIL] Ref: FS#15713 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Gerardo Exequiel Pozzi
Make dynamic initilization code for consoles. This changes the currect code for console initialization to make it dynamic. For example when boot on UML the number of consoles is 15 and not 63. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Gerardo Exequiel Pozzi
Fix rtc device to match current rule in udev-141-4. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Allan McRae <allan@archlinux.org>
Allan McRae
Fix incomplete elif statement Commit 92cbc62e introduced an incomplete elif statement which caues shutdown to fail. Signed-off-by: Allan McRae <allan@archlinux.org>
Gerardo Exequiel Pozzi
Convert to new initscript to new virtual console scheme Just convert vc/N to ttyN in all required places. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Allan McRae <allan@archlinux.org>
Aaron Griffin
rc.conf: Switch to dhcp by default More of a sane default. Static config left as example Ref: FS#12670 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Gerhard Brauer
Don't change hardwareclock if settings unclear Don't default to 'localtime' if HARDWARECLOCK is not set to UTC. Check explicit values Ref: FS#15263 Edited-by: Aaron Griffin <aaronmgriffin@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Kurt J. Bosch
Trigger uevents earlier Backgrounding the udev uevent triggering right after the launch of the udev daemon allows us to do more in parallel before we wait for uevents to complete (udevadm settle). This should speed up boot Ref: FS#12706 Idea-from: Vahid Hamidullah <vh22@njit.edu> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Gerardo Exequiel Pozzi
Fix warning when compiling without -ansi flag Add a #define without checking if already defined (introduced in a2db62cbc2f326c30bfd39be31fe71472b8e47e1 ) Signed-off-by: Gerardo Exequiel Pozzi <djgera@exequiel.ban2.ar> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
  1. Prev
  2. Next