bcm2835-driver: rework systemd service files

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue
2013-08-15 19:20:36 +02:00
parent 7c4c653e6f
commit b881ef8106
2 changed files with 4 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
[Unit]
Description=Set onedemand threshold
After=syslog.target
ConditionPathExists=/sys/devices/system/cpu/cpufreq/ondemand/up_threshold
@@ -9,5 +8,4 @@ Type=oneshot
ExecStart=/bin/sh -c 'echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold'
[Install]
WantedBy=multi-user.target
WantedBy=basic.target

View File

@@ -1,11 +1,11 @@
[Unit]
Description=Framebuffer setup
After=multi-user.target
ConditionPathExists=/sys/class/vtconsole/vtcon1/bind
[Service]
Type=oneshot
ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
ExecStart=/sbin/fbset -g 1 1 1 1 32
ExecStart=/bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
[Install]
WantedBy=graphical.target