Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 27 Feb 2015, 07:42
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Lm_sensors-3.1.0 in "Quirky Linux 1.4" ! only script
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Fri 26 Aug 2011, 22:38    Post subject:  Lm_sensors-3.1.0 in "Quirky Linux 1.4" ! only script
Subject description: A package with program which shows temperature of CPU
 

-=lm_sensors-3.1.0-1.fc11.i586.rpm=- is a package with program which shows statistics about motherboard.

Not perfect version of installation of the -=Lm_sensors-3.1.0=- program. Arrow

Quote:

Install_Lm-SENSORS--fc11--sr0.sh
Code:

#!/bin/bash
cd /room ;
curl -C - -O file:///mnt/sr0/Lm-Sensors/Fedora-11_files/lm_sensors-3.1.0-1.fc11.i586.rpm ;
if [ ! `echo -e "1b525876a63e0e1b44dec0f12b8a1493  lm_sensors-3.1.0-1.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i lm_sensors-3.1.0-1.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/lm_sensors-3.1.0-1.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#1
#
rm /usr/bin/perlthanks /usr/bin/perlivp /usr/bin/perldoc ;
rm /usr/bin/perl /usr/bin/perlbug /usr/bin/perl5.10.1 ;
rm -r /usr/lib/perl5 ;
#
curl -C - -O file:///mnt/sr0/Lm-Sensors/Fedora-11_files/perl-5.10.0-82.fc11.i586.rpm ;
if [ ! `echo -e "175f93681b9bd4a69e7ee1d082f37b92  perl-5.10.0-82.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-5.10.0-82.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-5.10.0-82.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#2
curl -C - -O file:///mnt/sr0/Lm-Sensors/Fedora-11_files/perl-libs-5.10.0-82.fc11.i586.rpm ;
if [ ! `echo -e "1ac4c25aeea0c6793066147db5e06a04  perl-libs-5.10.0-82.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-libs-5.10.0-82.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-libs-5.10.0-82.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#3
#
# # #
#
cat /etc/init.d/lm_sensors | \
sed -e 's|. /etc/init.d/functions|. /etc/rc.d/functions|' > /etc/init.d/lm_sensors ;
#
#My old editings >>>
#
#cat /etc/init.d/lm_sensors | \
#sed -e 's|      echo_success|      echo Success|g' > /etc/init.d/lm_sensors ;
#cat /etc/init.d/lm_sensors | \
#sed -e 's|      echo_failure|      echo Failure|g' > /etc/init.d/lm_sensors ;
#cat /etc/init.d/lm_sensors | \
#sed -e 's|      echo_warning|      echo Warning|g' > /etc/init.d/lm_sensors ;
#
#<<< My old editings
#
yes | sensors-detect ;
#
/etc/init.d/lm_sensors start 2>/dev/null | xmessage `cat`
#
#echo "<Program label=\"Sensors\" icon=\"so.xpm\">ln -s \`mktemp 2>/dev/null\` /tmp/004 ; sensors 2>/dev/null>>/tmp/004 | xmessage \"\`cat /tmp/004|grep -i 'fan1' ; cat /tmp/004|grep -i 'fan2' ; cat /tmp/004|grep -i 'temp1' ; cat /tmp/004|grep -i 'temp2' ; cat /tmp/004|grep -i 'temp3'\`\" ; rm /tmp/004 ; rm /tmp/tmp.??????????</Program>" >> /root/.jwmrc ;
cat /root/.jwmrc | \
sed -e 's/<Menu\ label="Utility"\ icon="utility24.png"\ height="16">/<Menu\ label="Utility"\ icon="utility24.png"\ height="16">\
<Program label="Sensors"\ icon="so.xpm">ln\ -s\ `mktemp\ 2>\/dev\/null`\ \/tmp\/004\ ;\ sensors\ 2>\/dev\/null>>\/tmp\/004\ |\ xmessage\ "`cat\ \/tmp\/004|grep\ -i\ '"'fan1'"'\ ;\ cat\ \/tmp\/004|grep\ -i\ '"'fan2'"'\ ;\ cat\ \/tmp\/004|grep\ -i\ '"'temp1'"'\ ;\ cat\ \/tmp\/004|grep -i\ '"'temp2'"'\ ;\ cat\ \/tmp\/004|grep\ -i\ '"'temp3'"'`"\ ;\ rm\ \/tmp\/004\ ;\ rm\ \/tmp\/tmp.??????????<\/Program>/g' > /root/.jwmrc ;
#
cat /root/.icewm/menu | \
sed -e 's/menu\ "Utility"\ utility24\ {/menu\ "Utility"\ utility24\ {\
prog\ "Sensors"\ "so.xpm"\ ln\ -s\ `mktemp\ 2>\/dev\/null`\ \/tmp\/004\ ;\ sensors\ 2>\/dev\/null>>\/tmp\/004\ |\ xmessage\ "`cat\ \/tmp\/004|grep\ -i\ '"'fan1'"'\ ;\ cat\ \/tmp\/004|grep\ -i\ '"'fan2'"'\ ;\ cat\ \/tmp\/004|grep\ -i\ '"'temp1'"'\ ;\ cat\ \/tmp\/004|grep -i\ '"'temp2'"'\ ;\ cat\ \/tmp\/004|grep\ -i\ '"'temp3'"'`"\ ;\ rm\ \/tmp\/004\ ;\ rm\ \/tmp\/tmp.??????????/g' > /root/.icewm/menu ;
#
echo '[Desktop Entry]' > /usr/share/applications/Sensors.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/Sensors.desktop ;
echo 'Name=Sensors' >> /usr/share/applications/Sensors.desktop ;
echo 'Categories=Application;Utility;UtilitySub;' >> /usr/share/applications/Sensors.desktop ;
echo 'Comment=Statistics from Motherboard' >> /usr/share/applications/Sensors.desktop ;
echo "Exec=bash -c 'ln -s \`mktemp 2>/dev/null\` /tmp/004 ; sensors 2>/dev/null>>/tmp/004 | xmessage \"\`cat /tmp/004|grep -i 'fan1' ; cat /tmp/004|grep -i 'fan2' ; cat /tmp/004|grep -i 'temp1' ; cat /tmp/004|grep -i 'temp2' ; cat /tmp/004|grep -i 'temp3'\`\" ; rm /tmp/004 ; rm /tmp/tmp.??????????'" >> /usr/share/applications/Sensors.desktop ;
echo 'Terminal=0' >> /usr/share/applications/Sensors.desktop ;
echo 'Type=Application' >> /usr/share/applications/Sensors.desktop ;
echo 'Icon=so.xpm' >> /usr/share/applications/Sensors.desktop ;
#
fixmenus ;
xmessage "Program -=lm_sensors-3.1.0-1.fc11.i586.rpm=- has been installed." `jwm -display :0.0 -restart` ;
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin ;


Edit: 2011, dec 25.


To make script executable this operation can be made:
cd /address_of_the_script_file/ ; chmod 550 script_file.sh ; stat script_file.sh

A script's content can be copied into text editor by means of <Quote> mode.

In the //<Devices>/<Sensors> section -=hardinfo=- program dinamically shows almost all output information from the command -=sensors=-.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0626s ][ Queries: 11 (0.0124s) ][ GZIP on ]