aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
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
2008-04-06Remove the "interface is already up" check from ifupThomas Bächler1
As stated in commit f589387f0b9ef56de8ab30f50a3c562e010baeeb, even an interface that is 'UP' may need configuring. However, the check introduced in this commit is nonsense (causing bug #9960, possibly others). The best idea is to remove the check altogether: This may cause duplicate dhcpcd processes to run (should be fixed), but otherwise ensures the interface is brought up when it should be.
2008-04-06Fix USEDIRECTISA in rc.shutdown as wellThomas Bächler1
2008-04-06Remove old initrd hacksThomas Bächler1
We haven't been using initrd for a while, so these hacks are unnecessary. The "encrypted root device hack" was obsoleted by proper udev rules long ago. The code to umount and free the initrd is not critical, so if somebody insists on using initrd, it can be done in rc.local.
2008-04-06Make USEDIRECTISA default to no, which is a sane default according to ↵Thomas Bächler2
hwlock's manpage. This is contrary to the behaviour in older initscripts.
2008-04-06Move /sys mounting to the beginning, together with /proc and /dev and clean ↵Thomas Bächler1
up some comments
2008-04-06Remove any special handling of usbfs from rc.sysinitThomas Bächler1
libusb has migrated to /dev/bus/usb, which is managed by udev and thus more flexible. Some legacy applications (like VirtualBox) still use it. However, since users need special permissions to access usbfs, they have to be specified via mount options in fstab. So there are two cases: 1) a user does not need usbfs 2) a user needs it, but must add it to fstab to force the right permissions Our old special handling in rc.sysinit is thus obsolete (and it was ugly anyway).
2008-03-19Use actual device number for creating /dev/misc/rtc02008.03-4Roman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-18Do not try to create /dev/pts and /dev/shm twice2008.03-3Roman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-18Fix a directory typo2008.03-2Aaron Griffin1
Looks like a 'bin/' slipped in there somewhere. Whoops Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-03-17Variable expansion quoting2008.03-1Aaron Griffin1
This was missed, and caused some gross output if a user mistakenly had a space in their timezone (we should fail gracefully here, not let bash error). Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-03-11Remove the 'makedevs' scriptRoman Kyrylych2
* last touched somewhere in 2005 * not used by anything * sits in /sbin but uses software from /usr/bin * makedev in Extra exists * if one wants a static /dev - just use mknod Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-10Fix a typo in /dev/rtc creation stepsRoman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-09More full-path fixesRoman Kyrylych3
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-08Add basic support for dependencies in rc.d scriptsRoman Kyrylych1
Example of use: DEPENDS=('dbus' 'acpid') . . . ck_depends ${DEPENDS[@]} and those daemons will be started if not running already Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-08Use full path to binaries everywhereRoman Kyrylych4
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-08Create /dev/rtc before running hwclock (FS#9636)Roman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-08Fix indentation in rc.d/functionsRoman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-07Additional /dev/ setup that udev doesn't doAaron Griffin1
These nodes are not covered by default udev, so lets make sure they're added properly. Ref: FS#9726 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-03-07Add my name to the copyright outputAaron Griffin1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-03-06Revert back to not loading defkeymapRoman Kyrylych1
* There is a patch for the kernel now, so no need to workaround the bug * Add a missing check for an empty KEYMAP Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-02Always load defkeymapRoman Kyrylych1
It seems that there's a bug in the kernel 2.6.24, which makes the built-in defkeymap to produce incorrect composite chars. Thus keymaps that don't have 'include "compose.latin1"' have issues (FS#9593). While it is better to fix this bug in kernel and all affected keymaps loading defkeymaps before other keymaps seems to not hurt anyway. Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-01Set up vc/0 as wellRoman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-03-01Do not mount /proc/bus/usb if commented in fstabRoman Kyrylych1
Fixes FS#9451 Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-02-29Make non-UTF-8 consoles work correctly in .24+ kernelsRoman Kyrylych1
* Since 2.6.24 the virtual terminal is in UTF-8 mode and the keyboard is in Unicode mode by default, and configurable only at run-time. * To make non-UTF-8 consoles work correctly: - the non-UTF-8 mode is set for the virtual terminal, - the XLATE mode is set for the keyboard. * UTF-8 mode is still set explicitly (not relying on default), so console works correctly even in a case when user set vt.default_utf8=0 in kernel commandline, but LOCALE in rc.conf is *.UTF-8. * % is a special symbol for printf, so it should be written twice. Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-02-21Remove trailing whitespaces and do some little reformattingRoman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-02-21Add some udev stats output2008.02-1Aaron Griffin1
So we can see timing and all that jazz Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-02-14rc.shutdown: Fix hwclock double callsDan McGee1
Commit 9673449ac0af77751eab62423114f27e7dbc497c added --directisa configuration to rc.shutdown, but didn't remove the old hwclock calls and instead just added a second call. Remove the original calls. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-02-14Merge branch 'posix' into workingDan McGee5
2008-02-14functions:source_functions(): don't fail on empty dirDan McGee1
Instead of using globbing which will fail on an empty directory, use an ls call similar to other places in the initscripts which is not prone to failure. (See rc.single in the daemon shutdown for example.) Signed-off-by: Dan McGee <dan@archlinux.org>
2008-02-14Remove echo -e usage from rc.sysinitDan McGee1
Use the always available (in sh) printf method instead. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-02-14Remove some bashisms from network, even though we cannot convert itDan McGee2
Since netfs and network source rc.conf, we cannot fully convert it to an sh script. However, we can get rid of a few things that are not sh compatible. Signed-off-by: Dan McGee <dan@archlinux.org>