gpm: Depend on /dev/input/mice
This commit is contained in:
parent
93846bef59
commit
685ca50650
2 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,9 @@ let
|
|||
# Miscellaneous devices.
|
||||
KERNEL=="kvm", MODE="0666"
|
||||
KERNEL=="kqemu", MODE="0666"
|
||||
|
||||
# Needed for gpm.
|
||||
KERNEL=="input/mice", TAG+="systemd"
|
||||
'';
|
||||
|
||||
# Perform substitutions in all udev rules files.
|
||||
|
|
|
@ -44,7 +44,7 @@ in
|
|||
{ description = "Console Mouse Daemon";
|
||||
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "getty.target" ];
|
||||
requires = [ "dev-input-mice.device" ];
|
||||
|
||||
serviceConfig.ExecStart = "@${pkgs.gpm}/sbin/gpm gpm -m /dev/input/mice -t ${cfg.protocol}";
|
||||
serviceConfig.Type = "forking";
|
||||
|
|
Loading…
Reference in a new issue