slitaz-tools diff tinyutils/mountbox @ rev 226
netbox: simplify wifi tab, add firmware install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 10 21:15:09 2008 +0000 (2008-07-10) |
parents | dbaa9c4f319c |
children | 5de884166be4 |
line diff
1.1 --- a/tinyutils/mountbox Sun May 11 00:25:10 2008 +0200 1.2 +++ b/tinyutils/mountbox Thu Jul 10 21:15:09 2008 +0000 1.3 @@ -74,8 +74,10 @@ 1.4 AVAILABLE=`echo $RES | cut -d " " -f 4` 1.5 PCT=`echo $RES | cut -d " " -f 5` 1.6 MOUNTED_ON=`echo $RES | cut -d " " -f 6` 1.7 -ROOT_ITEM=" 1.8 - <item icon=\"drive-harddisk\">$dev | $SIZE | $USED | $AVAILABLE | $PCT | $MOUNTED_ON</item>" 1.9 +if [ $SIZE != 0 ]; then 1.10 + ROOT_ITEM=" 1.11 + <item icon=\"drive-harddisk\">$dev | $SIZE | $USED | $AVAILABLE | $PCT | $MOUNTED_ON</item>" 1.12 +fi 1.13 MAIN_DIALOG=${MAIN_DIALOG}${ROOT_ITEM} 1.14 1.15 # Now we have rootfs and icons, list all mounted fs. 1.16 @@ -95,11 +97,11 @@ 1.17 <action>refresh:MOUNTED</action> 1.18 <action>refresh:DEVICE</action> 1.19 </tree> 1.20 + <hbox> 1.21 <text use-markup="true"> 1.22 <label>"<b>Mount selected device on:</b>"</label> 1.23 </text> 1.24 - <hbox> 1.25 - <combobox> 1.26 + <combobox> 1.27 <variable>MOUNT_POINT</variable>' 1.28 1.29 # Get the mount points list. 1.30 @@ -112,7 +114,7 @@ 1.31 1.32 # Actions buttons (moun, umount, eject, etc). 1.33 ACTIONS=' 1.34 - </combobox> 1.35 + </combobox> 1.36 <button> 1.37 <label>Browse</label> 1.38 <input file icon="folder-open"></input>