From 430cd0fe228177bacb19ebea20b7ba28af75f801 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 5 Aug 2015 21:31:24 +0200 Subject: [PATCH] applesmcd.service: fix for starting correctly at boot appleir.service: removed, support is automatic in kernel --- Makefile | 1 - appleir.service | 6 ------ applesmcd | 2 +- applesmcd.service | 3 +++ 4 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 appleir.service diff --git a/Makefile b/Makefile index 920dd56..de66c67 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,6 @@ install: backlight applesmc install -s -m 4755 backlight $(DESTDIR)$(BINDIR) install -m 0755 macbook-set-input $(DESTDIR)$(BINDIR)/ install -m 0644 applesmcd.service $(DESTDIR)/lib/systemd/system/applesmcd.service - install -m 0644 appleir.service $(DESTDIR)/lib/systemd/system/appleir.service install -m 0755 applesmcd $(DESTDIR)$(SBINDIR)/ install -m 0644 macbook-modprobe $(DESTDIR)/lib/modprobe.d/macbook.conf diff --git a/appleir.service b/appleir.service deleted file mode 100644 index 6f337f8..0000000 --- a/appleir.service +++ /dev/null @@ -1,6 +0,0 @@ -[Unit] -Description=lircd Apple IR remote daemon -ConditionPathExists=/dev/appleir - -[Service] -ExecStart=/usr/sbin/lircd -H macmini /usr/share/lirc/configs/macmini.conf diff --git a/applesmcd b/applesmcd index f878042..5708dec 100755 --- a/applesmcd +++ b/applesmcd @@ -32,7 +32,7 @@ while [ "1" ]; do else [ $BACKLIGHT -gt 255 ] && BACKLIGHT=255 fi - echo "LightM=$LIGHTM Backlight=$BACKLIGHT " +# echo "LightM=$LIGHTM Backlight=$BACKLIGHT " applesmc $BACKLIGHT # echo $BACKLIGHT > /sys/devices/platform/applesmc.768/keyboard_backlight # CURRBACKLIGHT=$BACKLIGHT diff --git a/applesmcd.service b/applesmcd.service index e739061..3b7d2e6 100644 --- a/applesmcd.service +++ b/applesmcd.service @@ -4,3 +4,6 @@ ConditionPathExists=/sys/devices/platform/applesmc.768 [Service] ExecStart=/usr/sbin/applesmcd + +[Install] +WantedBy=multi-user.target