Age | Commit message (Collapse) | Author | Files |
|
udev/initscript changes. This patch seems to fix such issues.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
|
|
hwlock's manpage. This is contrary to the behaviour in older initscripts.
|
|
up some comments
|
|
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).
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
Looks like a 'bin/' slipped in there somewhere. Whoops
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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>
|
|
* 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>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
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>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
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>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
* 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>
|
|
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>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
Fixes FS#9451
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
* 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>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
So we can see timing and all that jazz
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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>
|
|
|
|
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>
|
|
Use the always available (in sh) printf method instead.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
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>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
There is no reason to use bashisms in functions, so eliminate any and use
printf instead of echo options which are not guaranteed to be implemented in
a POSIX sh.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Using the 'UP' state to imply operational status is wrong and even if a
device is 'UP' we may still need to run ifconfig/dhcp
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Hotplug hasn't been supported in Arch for ages
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
We need, at the very least, these three device nodes
(null, console, and zero) created before we get udev
up and running
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
gcc gives a warning about signed/unsigned ints, and it tries to write to
syslog's /dev/log with a dgram socket which gives an EPROTOCOL error.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
On readonly root systems, lots of fdup calls fail on device nodes, for
instance in minilogd. So we'll mount /dev as early as we can
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This prevents /dev/ timestamps from being 'in the future' when the hwclock
is not in UTC.
Closes FS#8665
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|