LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2010, 05:54 PM   #1
RudraB
Member
 
Registered: Mar 2007
Distribution: Fedora
Posts: 264

Rep: Reputation: 23
conky if_up problem


dear friends,
in my .conkyrc, i tried to make a if_up loop to check if I am connected to eth0 or ppp0 or not connected. the part is:

Code:
${color #f8ec1e}${font Times:size=20}N${color #f8ec1e}${font 28 Days Later:size=10}ETWORKING $stippled_hr ${font}
${if_up ppp0}
${voffset -10}${color #ffcb48}Mobile Broadband ${hr 1}
${color #9966ff}IP address: $alignr$color${addr ppp0}
Total: ${totaldown ppp0} ${alignr}Total: ${totalup ppp0}
${else}
${if_up eth0}
${voffset -30}${color #ffcb48}Wired ${hr 1}
${color #9966ff}IP address: $alignr$color${addr eth0}
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
${else}
${voffset -30}${color #ffcb48}No Network Detected ${hr 1}
${endif}
It do detect correctly if eth0 or ppp0 is connected; but when none is connected, it shows output of Wired, with no IP(instead of writing No Network)
any solution?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
Conky 1.6.1 fluctuation problem URGENT sach1n Slackware 6 12-31-2009 07:47 AM
problem reinstalling conky joutlancpa Slackware 1 04-19-2009 04:25 AM
Conky installation problem Arpita Linux - Software 1 06-22-2008 01:15 AM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration