slitaz-tools rev 79
Improved mountbox and add a fake history cmd
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 05 22:00:40 2008 +0100 (2008-03-05) |
parents | 513a0fa159c8 |
children | 971477a715b3 |
files | tinyutils/history tinyutils/mountbox |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tinyutils/history Wed Mar 05 22:00:40 2008 +0100 1.3 @@ -0,0 +1,6 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# Fake history command for Ash. 1.7 +# 1.8 + 1.9 +cat $HOME/.ash_history 2>/dev/null || echo "No history file found..."
2.1 --- a/tinyutils/mountbox Wed Mar 05 18:18:45 2008 +0100 2.2 +++ b/tinyutils/mountbox Wed Mar 05 22:00:40 2008 +0100 2.3 @@ -38,6 +38,29 @@ 2.4 </window> 2.5 ' 2.6 2.7 +export MOUNTED=' 2.8 +<window title="Mounted devices" icon-name="media-flash"> 2.9 + <vbox> 2.10 + <text use-markup="true"> 2.11 + <label>" 2.12 +<b>Mounted devices list</b>" 2.13 + </label> 2.14 + </text> 2.15 + <frame Devices and mount points> 2.16 + <text wrap="false" width-chars="58"> 2.17 + <input>mount | grep ^/dev/[c-s]d</input> 2.18 + </text> 2.19 + </frame> 2.20 + <hbox> 2.21 + <button> 2.22 + <input file icon="exit"></input> 2.23 + <action type="closewindow">MOUNTED</action> 2.24 + </button> 2.25 + </hbox> 2.26 + </vbox> 2.27 +</window> 2.28 +' 2.29 + 2.30 # Mount and umount buttons with fiel for devive and mount point. 2.31 # 2.32 export MOUNT_DIALOG=' 2.33 @@ -63,11 +86,14 @@ 2.34 <hbox> 2.35 <text use-markup="true"> 2.36 <label>"<b>Device : </b>"</label> 2.37 - </text> 2.38 - <entry> 2.39 - <default>/dev/sda1</default> 2.40 + </text> 2.41 + <combobox> 2.42 <variable>DEVICE</variable> 2.43 - </entry> 2.44 + <item>/dev/sda1</item> 2.45 + <item>/dev/sdb2</item> 2.46 + <item>/dev/cdrom</item> 2.47 + <item>/dev/hda1</item> 2.48 + </combobox> 2.49 <button> 2.50 <label>List</label> 2.51 <input file icon="drive-harddisk"></input> 2.52 @@ -79,10 +105,18 @@ 2.53 <text use-markup="true"> 2.54 <label>"<b>Mount point : </b>"</label> 2.55 </text> 2.56 - <entry> 2.57 - <default>/media/flash</default> 2.58 + <combobox> 2.59 <variable>MOUNT_POINT</variable> 2.60 - </entry> 2.61 + <item>/media/flash</item> 2.62 + <item>/media/usbdisk</item> 2.63 + <item>/media/cdrom</item> 2.64 + <item>/mnt/harddisk</item> 2.65 + </combobox> 2.66 + <button> 2.67 + <label>List</label> 2.68 + <input file icon="drive-harddisk"></input> 2.69 + <action type="launch">MOUNTED</action> 2.70 + </button> 2.71 </hbox> 2.72 </frame> 2.73 2.74 @@ -106,7 +140,6 @@ 2.75 <action type="exit">Exit</action> 2.76 </button> 2.77 </hbox> 2.78 - 2.79 </vbox> 2.80 </window> 2.81 '