Compare commits
No commits in common. "79ac19ae616a335ec38df20fa1e27e53fa588ca3" and "e9b0b64f77fd5e870ee4c28064563f1e0071a4ff" have entirely different histories.
79ac19ae61
...
e9b0b64f77
|
@ -209,10 +209,6 @@ sensor:modalias:acpi:KIOX000A*:dmi:*:svnConnect:pnTablet9:*
|
|||
sensor:modalias:acpi:KIOX000A*:dmi:*:svncube:pni1-TF:*
|
||||
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
|
||||
|
||||
# Cube i7
|
||||
sensor:modalias:acpi:SMO8500*:dmi:*:svncube:pni7:*
|
||||
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
|
||||
|
||||
# Cube i7 Stylus
|
||||
sensor:modalias:acpi:KIOX000A*:dmi:*:svnCube:pni7Stylus:*
|
||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
|
||||
|
|
|
@ -74,11 +74,11 @@ static int dhcp4_route_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *li
|
|||
/* It seems kernel does not support that the prefix route cannot be configured with
|
||||
* route table. Let's once drop the config and reconfigure them later. */
|
||||
|
||||
log_link_message_debug_errno(link, m, r, "Could not set DHCPv4 route, retrying later");
|
||||
log_link_message_debug_errno(link, m, r, "Could not set DHCPv4 route, retrying later: %m");
|
||||
link->dhcp4_route_failed = true;
|
||||
link->manager->dhcp4_prefix_root_cannot_set_table = true;
|
||||
} else if (r < 0 && r != -EEXIST) {
|
||||
log_link_message_warning_errno(link, m, r, "Could not set DHCPv4 route");
|
||||
log_link_message_warning_errno(link, m, r, "Could not set DHCPv4 route: %m");
|
||||
link_enter_failed(link);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -699,9 +699,11 @@ int userdb_all(UserDBFlags flags, UserDBIterator **ret) {
|
|||
|
||||
setpwent();
|
||||
iterator->nss_iterating = true;
|
||||
goto finish;
|
||||
} else if (r < 0)
|
||||
return r;
|
||||
|
||||
finish:
|
||||
*ret = TAKE_PTR(iterator);
|
||||
return 0;
|
||||
}
|
||||
|
@ -903,9 +905,15 @@ int groupdb_all(UserDBFlags flags, UserDBIterator **ret) {
|
|||
|
||||
setgrent();
|
||||
iterator->nss_iterating = true;
|
||||
} if (r < 0)
|
||||
return r;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (!FLAGS_SET(flags, USERDB_DONT_SYNTHESIZE))
|
||||
goto finish;
|
||||
|
||||
return r;
|
||||
|
||||
finish:
|
||||
*ret = TAKE_PTR(iterator);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "device-util.h"
|
||||
#include "fd-util.h"
|
||||
#include "missing_input.h"
|
||||
#include "parse-util.h"
|
||||
#include "stdio-util.h"
|
||||
#include "string-util.h"
|
||||
#include "udev-builtin.h"
|
||||
|
@ -124,25 +123,8 @@ static void get_cap_mask(sd_device *pdev, const char* attr,
|
|||
}
|
||||
}
|
||||
|
||||
static struct input_id get_input_id(sd_device *dev) {
|
||||
const char *v;
|
||||
struct input_id id = {};
|
||||
|
||||
if (sd_device_get_sysattr_value(dev, "id/bustype", &v) >= 0)
|
||||
(void) safe_atoux16(v, &id.bustype);
|
||||
if (sd_device_get_sysattr_value(dev, "id/vendor", &v) >= 0)
|
||||
(void) safe_atoux16(v, &id.vendor);
|
||||
if (sd_device_get_sysattr_value(dev, "id/product", &v) >= 0)
|
||||
(void) safe_atoux16(v, &id.product);
|
||||
if (sd_device_get_sysattr_value(dev, "id/version", &v) >= 0)
|
||||
(void) safe_atoux16(v, &id.version);
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
/* pointer devices */
|
||||
static bool test_pointers(sd_device *dev,
|
||||
const struct input_id *id,
|
||||
const unsigned long* bitmask_ev,
|
||||
const unsigned long* bitmask_abs,
|
||||
const unsigned long* bitmask_key,
|
||||
|
@ -167,7 +149,7 @@ static bool test_pointers(sd_device *dev,
|
|||
bool is_tablet = false;
|
||||
bool is_joystick = false;
|
||||
bool is_accelerometer = false;
|
||||
bool is_pointing_stick = false;
|
||||
bool is_pointing_stick= false;
|
||||
|
||||
has_keys = test_bit(EV_KEY, bitmask_ev);
|
||||
has_abs_coordinates = test_bit(ABS_X, bitmask_abs) && test_bit(ABS_Y, bitmask_abs);
|
||||
|
@ -247,10 +229,6 @@ static bool test_pointers(sd_device *dev,
|
|||
!has_abs_coordinates)) /* mouse buttons and no axis */
|
||||
is_mouse = true;
|
||||
|
||||
/* There is no such thing as an i2c mouse */
|
||||
if (is_mouse && id->bustype == BUS_I2C)
|
||||
is_pointing_stick = true;
|
||||
|
||||
if (is_pointing_stick)
|
||||
udev_builtin_add_property(dev, test, "ID_INPUT_POINTINGSTICK", "1");
|
||||
if (is_mouse)
|
||||
|
@ -348,8 +326,6 @@ static int builtin_input_id(sd_device *dev, int argc, char *argv[], bool test) {
|
|||
}
|
||||
|
||||
if (pdev) {
|
||||
struct input_id id = get_input_id(pdev);
|
||||
|
||||
/* Use this as a flag that input devices were detected, so that this
|
||||
* program doesn't need to be called more than once per device */
|
||||
udev_builtin_add_property(dev, test, "ID_INPUT", "1");
|
||||
|
@ -358,7 +334,7 @@ static int builtin_input_id(sd_device *dev, int argc, char *argv[], bool test) {
|
|||
get_cap_mask(pdev, "capabilities/rel", bitmask_rel, sizeof(bitmask_rel), test);
|
||||
get_cap_mask(pdev, "capabilities/key", bitmask_key, sizeof(bitmask_key), test);
|
||||
get_cap_mask(pdev, "properties", bitmask_props, sizeof(bitmask_props), test);
|
||||
is_pointer = test_pointers(dev, &id, bitmask_ev, bitmask_abs,
|
||||
is_pointer = test_pointers(dev, bitmask_ev, bitmask_abs,
|
||||
bitmask_key, bitmask_rel,
|
||||
bitmask_props, test);
|
||||
is_key = test_key(dev, bitmask_ev, bitmask_key, test);
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
Description=Platform Persistent Storage Archival
|
||||
Documentation=man:systemd-pstore(8)
|
||||
ConditionDirectoryNotEmpty=/sys/fs/pstore
|
||||
ConditionVirtualization=!container
|
||||
DefaultDependencies=no
|
||||
Wants=systemd-remount-fs.service
|
||||
After=systemd-remount-fs.service
|
||||
|
|
Loading…
Reference in New Issue