Skip to content

Create a link of a hwmon temp input based on name and label

Notifications You must be signed in to change notification settings

rorosen/temp-linker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temp Linker

Create a link of a hwmon temp input based on name and label.

How to Build

nix build .\#packages.x86_64-linux.default

How to Run

./result/bin/temp-linker --name k10temp --link-path /tmp/temperature

Specify an additional label that needs to match.

./result/bin/temp-linker --name k10temp --link-path /tmp/temperature --label Tctl

Get Name and Label

for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo no_label) $i"; done

About

Create a link of a hwmon temp input based on name and label

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published