Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
sl-wizard
> gen-dialog-sensors.sh
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File gen-dialog-sensors.sh of Package sl-wizard
#!/bin/bash MAPS="/etc/sl-sensors.conf" #cat $MAPS |awk -F: '{print $1" "$(NF-1)" off"}' CNT=1 echo '0 "Run_sensors-detect" on' for LINE in `cat $MAPS |awk -F: '{print $(NF-1)}'|sed s/" "/"_"/g` do #WRK=`echo $LINE |sed s/"_"/" "/g` WRK=$LINE echo $CNT $WRK off CNT=`expr $CNT + 1` done