[code]${if_up wlan0}
${voffset -4} ${voffset -6}Upload: ${font Ubuntu:style=Bold:size=9}${color1}${upspeed wlan0}${color}${font} Insgesamt: ${font Ubuntu:style=Bold:size=9}${color2}${totalup wlan0}${color}${font}
${voffset 4} Signal: ${font Ubuntu:style=Bold:size=9}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr 15}
${voffset 4} Down: ${font Ubuntu:style=Bold:size=9}${color1}${downspeed wlan0}${color}${font} Insgesamt: ${font Ubuntu:style=Bold:size=9}${color2}${totaldown wlan0}${color}${font}
# |--ETH0
${else}${if_up eth0}
#${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}
${voffset -4}${voffset -6}Up: ${font Ubuntu:style=Bold:size=9}${color1}${upspeed eth0}${color}${font} Insgesamt: ${font Ubuntu:style=Bold:size=9}${color2}${totalup eth0}${color}${font}
#${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}
${voffset -4}${voffset -6}Down: ${font Ubuntu:style=Bold:size=9}${color1}${downspeed eth0}${color}${font}Insgesamt: ${font Ubuntu:style=Bold:size=9}${color2}${totaldown eth0}${color}
# |--PPP0
${endif}${else}${if_up ppp0}
#${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}
${voffset -4}${voffset -6}Up: ${font Ubuntu:style=Bold:size=9}${color1}${upspeed ppp0}${color}${font}Insgesamt: ${font Ubuntu:style=Bold:size=9}${color2}${totalup ppp0}${color}
#${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}
${voffset -4}${voffset -6}Down: ${font Ubuntu:style=Bold:size=9}${color1}${downspeed ppp0}${color}${font} Insgesamt: ${font Ubuntu:style=Bold:size=9}${color2}${totaldown ppp0}${color}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color} Netzwerk nicht verfügbar${endif}${endif}[/code]结果总是只执行第一个if ,不顾else。。。
如何更改使其根据实际情况作出正确显示??
zyzhang12 于 2012-04-21 01:39:28发表:
高错了 是我的网卡没禁用