Hi,
ich verwende Xubuntu 14.04 und habe irgendwie den Verdacht, dass meine rc.local nicht ausgeführt wird. Im Artikel zur rc.local steht:
Ab Ubuntu 14.10 muss die Ausführung der Datei /etc/rc.local aufgrund des neuen Init-Systems systemd erst aktiviert werden.
Sollte ich jetzt systemd haben, oder nicht? Nach meinem Verständnis käme 14.10 -nach- 14.04, oder zählt das als gleichzeitig? Jedenfalls habe ich probehalber das im Artikel zu systemd genannte "systemctl cat rc-local" ausgeführt, das schlägt fehl:
kay@kay-T430:~$ systemctl cat rc-local systemctl: Befehl nicht gefunden.
Aber:
kay@kay-T430:~$ dpkg --get-selections | grep systemd libpam-systemd:amd64 install libsystemd-daemon0:amd64 install libsystemd-login0:amd64 install systemd-services install systemd-shim install
Heißt doch, dass systemd installiert ist, oder? Ich kann leider nicht ausschließen, dass ich einmal vor längerer Zeit - fahre das System schon länger - ein "apt-get install systemd" gemacht habe, ohne zu wissen, was ich da eigentlich treibe, weil ich irgendwo irgendwas gelesen habe.
Sind jetzt alles nur Vermutungen, mit denen ich etwas Vorarbeit leisten wollte, bevor ich hier frage. Der eigentlich Anlass ist, dass diese Befehle, die ich in rc.local eingetragen habe scheinbar nicht ausgeführt werden:
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load (/bin/sleep 20 && echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq) (/bin/sleep 20 && echo 2000000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq) (/bin/sleep 20 && echo 2000000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq) (/bin/sleep 20 && echo 2000000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq) exit 0
Denn:
kay@kay-T430:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 3300000
Sieht jemand den Fehler? ☹