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?