Skip to content

Instantly share code, notes, and snippets.

@Mic92
Last active December 9, 2018 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/a83216ee44f04eba3b309370ca744f3f to your computer and use it in GitHub Desktop.
Save Mic92/a83216ee44f04eba3b309370ca744f3f to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
substituteAll {
src = ./fix-script.patch;
inherit systemd;
}
--- lib/udev/displaylink.sh 2018-12-09 11:14:04.496931557 +0100
+++ lib/udev/displaylink.sh 2018-12-09 11:16:42.971197995 +0100
@@ -76,7 +77,7 @@
start_service()
{
- systemctl start dlm
+ @systemd@/bin/systemctl start --no-block dlm
}
stop_service()
--- lib/udev/displaylink.sh 2018-12-09 11:14:04.496931557 +0100
+++ lib/udev/displaylink.sh 2018-12-09 11:16:42.971197995 +0100
@@ -76,7 +77,7 @@
start_service()
{
- systemctl start dlm
+ /nix/store/7j4j6z5w6bpfj75krglxbma8wh78f6j3-systemd-239/bin/systemctl start --no-block dlm
}
stop_service()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment