mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-26 05:35:21 +07:00
localed: system-setup-keyboard is no more on fedora
This commit is contained in:
parent
a29271926a
commit
f687b27382
3
TODO
3
TODO
@ -128,9 +128,6 @@ Features:
|
|||||||
|
|
||||||
* add _SYSTEMD_USER_UNIT= field to journal entries
|
* add _SYSTEMD_USER_UNIT= field to journal entries
|
||||||
|
|
||||||
* remove Fedora /dev/null logic from localed.c, now that system-config-keyboard is gone
|
|
||||||
delete /etc/X11/xorg.conf.d/00-system-setup-keyboard.conf from spec file
|
|
||||||
|
|
||||||
* journal: expose current disk usage
|
* journal: expose current disk usage
|
||||||
|
|
||||||
* dracut-shutdown needs to be ordered before unmounting /boot
|
* dracut-shutdown needs to be ordered before unmounting /boot
|
||||||
|
@ -271,24 +271,8 @@ static int read_data_x11(void) {
|
|||||||
free_data_x11();
|
free_data_x11();
|
||||||
|
|
||||||
f = fopen("/etc/X11/xorg.conf.d/00-keyboard.conf", "re");
|
f = fopen("/etc/X11/xorg.conf.d/00-keyboard.conf", "re");
|
||||||
if (!f) {
|
if (!f)
|
||||||
if (errno == ENOENT) {
|
return errno == ENOENT ? 0 : -errno;
|
||||||
|
|
||||||
#ifdef TARGET_FEDORA
|
|
||||||
f = fopen("/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf", "re");
|
|
||||||
if (!f) {
|
|
||||||
if (errno == ENOENT)
|
|
||||||
return 0;
|
|
||||||
else
|
|
||||||
return -errno;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} else
|
|
||||||
return -errno;
|
|
||||||
}
|
|
||||||
|
|
||||||
while (fgets(line, sizeof(line), f)) {
|
while (fgets(line, sizeof(line), f)) {
|
||||||
char *l;
|
char *l;
|
||||||
@ -577,14 +561,6 @@ static int write_data_x11(void) {
|
|||||||
isempty(state.x11_variant) &&
|
isempty(state.x11_variant) &&
|
||||||
isempty(state.x11_options)) {
|
isempty(state.x11_options)) {
|
||||||
|
|
||||||
#ifdef TARGET_FEDORA
|
|
||||||
unlink("/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf");
|
|
||||||
|
|
||||||
/* Symlink this to /dev/null, so that s-s-k (if it is
|
|
||||||
* still running) doesn't recreate this. */
|
|
||||||
symlink("/dev/null", "/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (unlink("/etc/X11/xorg.conf.d/00-keyboard.conf") < 0)
|
if (unlink("/etc/X11/xorg.conf.d/00-keyboard.conf") < 0)
|
||||||
return errno == ENOENT ? 0 : -errno;
|
return errno == ENOENT ? 0 : -errno;
|
||||||
|
|
||||||
@ -624,18 +600,8 @@ static int write_data_x11(void) {
|
|||||||
r = -errno;
|
r = -errno;
|
||||||
unlink("/etc/X11/xorg.conf.d/00-keyboard.conf");
|
unlink("/etc/X11/xorg.conf.d/00-keyboard.conf");
|
||||||
unlink(temp_path);
|
unlink(temp_path);
|
||||||
} else {
|
} else
|
||||||
|
|
||||||
#ifdef TARGET_FEDORA
|
|
||||||
unlink("/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf");
|
|
||||||
|
|
||||||
/* Symlink this to /dev/null, so that s-s-k (if it is
|
|
||||||
* still running) doesn't recreate this. */
|
|
||||||
symlink("/dev/null", "/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
r = 0;
|
r = 0;
|
||||||
}
|
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
free(temp_path);
|
free(temp_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user