aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2009-07-18Fix incomplete elif statement2009.07-2Allan McRae1
Commit 92cbc62e introduced an incomplete elif statement which caues shutdown to fail. Signed-off-by: Allan McRae <allan@archlinux.org>
2009-07-18Convert to new initscript to new virtual console scheme2009.07-1Gerardo Exequiel Pozzi2
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>
2009-06-30rc.conf: Switch to dhcp by defaultAaron Griffin1
More of a sane default. Static config left as example Ref: FS#12670 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-06-26Don't change hardwareclock if settings unclearGerhard Brauer1
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>
2009-06-26Trigger uevents earlierKurt J. Bosch1
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>
2009-06-12Fix warning when compiling without -ansi flagGerardo Exequiel Pozzi1
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>
2009-06-12Fix minilogd.c eat memory on buflines>=MAX_BUF_LINESGerardo Exequiel Pozzi1
Do not allocate more memory and leak when buflines>=MAX_BUF_LINES Signed-off-by: Gerardo Exequiel Pozzi <djgera@exequiel.ban2.ar> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-06-09network: Remove the hotplug_ifup command, the function has been removed a ↵Thomas Bächler1
long time ago
2009-06-07Fix array count/walk in rc.shutdown and rc.single, see #13263Thomas Bächler2
2009-06-07We always mount /sys, thus remove a superfluous check for /sys/block. Also ↵Thomas Bächler2
fixes #14437
2009-06-07Make the daemon shutdown in rc.single consistent with rc.shutdown, see #12978Thomas Bächler1
2009-06-07Remove a useless check of dmesg.log file Signed-off-by: Hugo Doria ↵Hugo Doria1
<hugo@archlinux.org>
2009-04-02Make sure functions ends cleanlyAaron Griffin1
When errexit was set, sourcing functions caused a script to exit. Fix this by using a real 'if' instead of the [ a ] && b syntax. Also, fix the vim modeline :) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-10Create /var/lib/misc if it doesn't exist2009.03-2Thomas Bächler1
This is necessary because the filesystem package doesn't currently contain this directory
2009-03-10Add the adjtime cron job to install.shAaron Griffin1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-09minilogd: ensure we free() the bufferGerardo Exequiel Pozzi1
This isn't strictly needed, as memory is cleaned up on exit anyway, but let's shoot for good form :) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-09Add adjtime handling to hwclock initAaron Griffin2
The hwclock man page recommends calling hwclock with --adjust at start time, and periodically during system run. So let's do that here. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-09minilogd: Initialize values for accept()Gerardo Exequiel Pozzi1
From the accept(2) manpage: The addrlen argument is a value-result argument: the caller must initialize it to contain the size (in bytes) of the structure pointed to by addr; on return it will contain the actual size of the peer address. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-09Fix status display functionsAllan McRae1
The status display functions were returning the opposite of what they should have been. Also made cosmetic changes to the output. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-09Fix minilogd headersGerardo Exequiel Pozzi1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-07Use the device nodes from /lib/udev/devices/* instead of hardcoding them in ↵2009.03-1Thomas Bächler1
initscripts. This requires a new udev package (at least 139-1)
2009-03-03Remove the kernel 'quiet' handling for fsckAaron Griffin1
This is simply confusing that we use the kernel "quiet" parameter to mute fsck output. Removed for now - perhaps we can add a better solution later. Ref: FS#12928 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-11Fix bug #13205: better random-seed entropyThomas Bächler2
- For the random-seed file location to be more "FHS compliant" is better to put in /var/lib/misc/random-seed (Variable state information, that persists after reboot) than the /var/run/random-seed (Run-time variable data, that not necessarily persists after reboot) for example with /var/run mounted as TMPFS. - The random-seed file permision should be "0600" not "0644" - The size of random-seed acording to random(4) manpage should be the size specified in "/proc/sys/kernel/random/poolsize" in other case 512 bytes.
2009-02-10Allow the user to cancel an fsckPetar Bogdanovic1
Don't fail and force a reboot if the user cancels an fsck on boot. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-01-21Adjust copyright year to 20092009.01Aaron Griffin1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-23Add some simple status display functionsAaron Griffin1
This is useful for displaying daemon status in functions like /etc/rc.d/$DAEMON status Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-23Adjust minilogd's maximumsAaron Griffin1
A max of 200000 lines stored, at 8K per line, was a little ridiculous and soaked up way to much memory if a syslogger was not started. Drop the max to 10000 so that we don't kill the user's system. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-23chmod /var/run/utmp to 664 when creatingAaron Griffin1
This allows X terminals to write to /var/run/utmp so that they are reported properly to commands like who and w Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-04unset the TZ envvar in 'functions'Aaron Griffin1
This prevents a local TZ variable from breaking daemon's when started by root. Daemon's should always respect the system's /etc/localtime Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-24Switch commented kdm pathAaron Griffin1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-25Added missing slashRoman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-18Fix bug #112292008.09-2Thomas Bächler1
2008-09-18Respawn udev properly when running 'init s'. Fixes #97392008.09-1Thomas Bächler1
2008-09-14Remove references to start_udev from rc.sysinitThomas Bächler1
2008-09-14Revert "Create udev required device nodes if missing"Thomas Bächler1
This reverts commit 119b8df1fb1258231750309f01e747e72f382493. These nodes are created like 10 lines above, the [ -f ... ] check would always return false anyway (-f == regular file)
2008-08-30Create udev required device nodes if missingAaron Griffin1
Udev requires /dev/console, /dev/null, and /dev/zero to exist before running. Create these on init if they're missing Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-05Set kbd_mode on all virtual consoles2008.08-1Aaron Griffin1
Previous behavior only set the mode for vc0. See FS#11093 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-07-22ipv6 over ipv4 tunneling support in /etc/rc.d/networkDaniel Kaminski1
This is done by checking the route config for a double colon Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-07-18Remount filesystems RO if umounting failsAaron Griffin1
Just a safeguard, suggested by FS#10947 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-07-17Add some useful error messages to wireless codeJames Rayner1
Additionally add optional WIRELESS_TIMEOUT parameter Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-06-30Decouple ISO release name from initscriptsAaron Griffin1
This should aleviate some gripes Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-06-20Minor simplication for /etc/rc.d/functions.d/Natanael Copa1
Trivial simplification to make code more readable. Removes one fork so booting should be "faster". Probably not mesureable Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-27Allow users to ovverride daemon start and stop in rc.multi and rc.shutdownAnton Fiuman3
Signed-off-by: Anton Fiuman <llexiw@gmail.com>
2008-05-22Remove source_functions in favor of always sourcing the dirAaron Griffin4
This is an obvious oversight on my part - this change allows the overridden functions to work in daemon scripts and anything else that uses /etc/rc.d/functions by itself. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-14Fix commit 521d7678cecb3018923f7c869bc8a5f74dc29268, this makes more sense2008.05-1Thomas Bächler1
2008-04-13Always quote $TIMEZONE to fix FS#10178Thomas Bächler2
2008-04-12fixing udev hotplugging Some devices like scanners do not work with recent ↵Pierre Schmitz1
udev/initscript changes. This patch seems to fix such issues.
2008-04-08Just some whitespace fixesThomas Bächler1
2008-04-07Remove setterm screen blanking from rc.sysinitThomas Bächler1
Contrary to what one may think, screen blanking not only affects the console, but also the X server. This line may lead to unwanted blank screens although one has DPMS disabled in X. Furthermore, it adds a hardcoded, non-configurable default setting to Arch. This should either be made configurable (but IMO, we don't need more stuff in rc.conf) or added to rc.local by the user if needed. As this is a one-liner, the second solution sounds good to me.
2008-04-06Remove extra newline from udev status outputThomas Bächler1