Moin,
ich habe grade mal testweise mit einem Script in /etc/rc.local rumgespielt, mit dem sonderbaren Ergebnis, daß das Programm sensors keine "°" liefert, wenn es per /etc/rc.local als root ausgeführt wird.
Eine normale Anzeige:
mj@mj-desktop:~$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +33.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +36.0°C (high = +76.0°C, crit = +100.0°C)
nouveau-pci-0100
Adapter: PCI adapter
temp1: +49.0°C (high = +95.0°C, hyst = +3.0°C)
(crit = +122.0°C, hyst = +2.0°C)
(emerg = +135.0°C, hyst = +5.0°C)
mj@mj-desktop:~$ sudo sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +34.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +36.0°C (high = +76.0°C, crit = +100.0°C)
nouveau-pci-0100
Adapter: PCI adapter
temp1: +49.0°C (high = +95.0°C, hyst = +3.0°C)
(crit = +122.0°C, hyst = +2.0°C)
(emerg = +135.0°C, hyst = +5.0°C)
mj@mj-desktop:~$ sudo su
root@mj-desktop:/home/mj# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +32.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +35.0°C (high = +76.0°C, crit = +100.0°C)
nouveau-pci-0100
Adapter: PCI adapter
temp1: +49.0°C (high = +95.0°C, hyst = +3.0°C)
(crit = +122.0°C, hyst = +2.0°C)
(emerg = +135.0°C, hyst = +5.0°C)
root@mj-desktop:/home/mj#
Die (in ein Log umgeleitete) Anzeige vom per /etc/rc.local gestarteten Script, welches sensors aufruft:
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +32.0 C (high = +76.0 C, crit = +100.0 C)
Core 1: +35.0 C (high = +76.0 C, crit = +100.0 C)
nouveau-pci-0100
Adapter: PCI adapter
temp1: +49.0 C (high = +95.0 C, hyst = +3.0 C)
(crit = +122.0 C, hyst = +2.0 C)
(emerg = +135.0 C, hyst = +5.0 C)
Weiß jemand warum das so ist? Was fehlt root zu dem Zeitpunkt?