Fix udev rule required by gpm

Backport: 14.04
This commit is contained in:
Eelco Dolstra 2014-05-20 13:07:40 +02:00
parent 81df6151c3
commit 097f9c7e57
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ let
KERNEL=="kqemu", MODE="0666"
# Needed for gpm.
KERNEL=="input/mice", TAG+="systemd"
SUBSYSTEM=="input", KERNEL=="mice", TAG+="systemd"
'';
# Perform substitutions in all udev rules files.

View File

@ -45,6 +45,7 @@ in
wantedBy = [ "multi-user.target" ];
requires = [ "dev-input-mice.device" ];
after = [ "dev-input-mice.device" ];
serviceConfig.ExecStart = "@${pkgs.gpm}/sbin/gpm gpm -m /dev/input/mice -t ${cfg.protocol}";
serviceConfig.Type = "forking";