applesmcd.service: fix for starting correctly at boot

appleir.service: removed, support is automatic in kernel
This commit is contained in:
Silvan Calarco 2015-08-05 21:31:24 +02:00
parent c13b5d1e0e
commit 430cd0fe22
4 changed files with 4 additions and 8 deletions

View File

@ -26,7 +26,6 @@ install: backlight applesmc
install -s -m 4755 backlight $(DESTDIR)$(BINDIR) install -s -m 4755 backlight $(DESTDIR)$(BINDIR)
install -m 0755 macbook-set-input $(DESTDIR)$(BINDIR)/ install -m 0755 macbook-set-input $(DESTDIR)$(BINDIR)/
install -m 0644 applesmcd.service $(DESTDIR)/lib/systemd/system/applesmcd.service 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 0755 applesmcd $(DESTDIR)$(SBINDIR)/
install -m 0644 macbook-modprobe $(DESTDIR)/lib/modprobe.d/macbook.conf install -m 0644 macbook-modprobe $(DESTDIR)/lib/modprobe.d/macbook.conf

View File

@ -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

View File

@ -32,7 +32,7 @@ while [ "1" ]; do
else else
[ $BACKLIGHT -gt 255 ] && BACKLIGHT=255 [ $BACKLIGHT -gt 255 ] && BACKLIGHT=255
fi fi
echo "LightM=$LIGHTM Backlight=$BACKLIGHT " # echo "LightM=$LIGHTM Backlight=$BACKLIGHT "
applesmc $BACKLIGHT applesmc $BACKLIGHT
# echo $BACKLIGHT > /sys/devices/platform/applesmc.768/keyboard_backlight # echo $BACKLIGHT > /sys/devices/platform/applesmc.768/keyboard_backlight
# CURRBACKLIGHT=$BACKLIGHT # CURRBACKLIGHT=$BACKLIGHT

View File

@ -4,3 +4,6 @@ ConditionPathExists=/sys/devices/platform/applesmc.768
[Service] [Service]
ExecStart=/usr/sbin/applesmcd ExecStart=/usr/sbin/applesmcd
[Install]
WantedBy=multi-user.target