mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
drop Arch Linux support for reading /etc/rc.conf
This commit is contained in:
parent
bd49c40537
commit
53d05b44f1
@ -163,16 +163,6 @@ int locale_setup(void) {
|
|||||||
log_warning("Failed to read /etc/default/locale: %s", strerror(-r));
|
log_warning("Failed to read /etc/default/locale: %s", strerror(-r));
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(TARGET_ARCH)
|
|
||||||
if (r <= 0 &&
|
|
||||||
(r = parse_env_file("/etc/rc.conf", NEWLINE,
|
|
||||||
"LOCALE", &variables[VARIABLE_LANG],
|
|
||||||
NULL)) < 0) {
|
|
||||||
|
|
||||||
if (r != -ENOENT)
|
|
||||||
log_warning("Failed to read /etc/rc.conf: %s", strerror(-r));
|
|
||||||
}
|
|
||||||
|
|
||||||
#elif defined(TARGET_GENTOO)
|
#elif defined(TARGET_GENTOO)
|
||||||
/* Gentoo's openrc expects locale variables in /etc/env.d/
|
/* Gentoo's openrc expects locale variables in /etc/env.d/
|
||||||
* These files are later compiled by env-update into shell
|
* These files are later compiled by env-update into shell
|
||||||
|
@ -245,15 +245,6 @@ int main(int argc, char **argv) {
|
|||||||
if (r < 0 && r != -ENOENT)
|
if (r < 0 && r != -ENOENT)
|
||||||
log_warning("Failed to read /etc/sysconfig/console: %s", strerror(-r));
|
log_warning("Failed to read /etc/sysconfig/console: %s", strerror(-r));
|
||||||
|
|
||||||
#elif defined(TARGET_ARCH)
|
|
||||||
r = parse_env_file("/etc/rc.conf", NEWLINE,
|
|
||||||
"KEYMAP", &vc_keymap,
|
|
||||||
"CONSOLEFONT", &vc_font,
|
|
||||||
"CONSOLEMAP", &vc_font_map,
|
|
||||||
NULL);
|
|
||||||
if (r < 0 && r != -ENOENT)
|
|
||||||
log_warning("Failed to read /etc/rc.conf: %s", strerror(-r));
|
|
||||||
|
|
||||||
#elif defined(TARGET_ALTLINUX)
|
#elif defined(TARGET_ALTLINUX)
|
||||||
r = parse_env_file("/etc/sysconfig/keyboard", NEWLINE,
|
r = parse_env_file("/etc/sysconfig/keyboard", NEWLINE,
|
||||||
"KEYTABLE", &vc_keymap,
|
"KEYTABLE", &vc_keymap,
|
||||||
|
Loading…
Reference in New Issue
Block a user