slitaz-tools view tinyutils/burnbox @ rev 252

Fix spelling, typos, wording, etc.
author Mike D. Smith <MikeDSmith25@gmail.com>
date Sat Jul 19 06:35:45 2008 +0000 (2008-07-19)
parents 5de884166be4
children 1ce86bd8de83
line source
1 #! /bin/sh
2 #
3 # Gtkdialog box to burn ISO images using Wodim with basic options.
4 # - SliTaz GNU/Linux 2008.
5 #
6 VERSION=20080114
8 # Burn/wodim dialog box. Sleep a bit with progress bar to let user cancel
9 # ISO burning and exit when finished.
10 #
11 export BURN_DIALOG='
12 <window title="Burnbox working" icon-name="dialog-warning">
13 <vbox>
14 <text use-markup="true" width-chars="28">
15 <label>
16 "
17 <b>Burnbox working</b>
18 "
19 </label>
20 </text>
21 <progressbar>
22 <label>Please wait...</label>
23 <input>for i in 15 30 45; do echo $i; sleep 1; done; echo "Burning ISO..."; wodim speed=$SPEED dev=$DEVICE $OPTIONS $ISO_IMAGE >/dev/null; echo "Done..."; for i in 60 75 90; do echo $i; sleep 1; done; echo 100</input>
24 <action type="exit">Burned</action>
25 </progressbar>
26 </vbox>
27 </window>
28 '
30 # We need at least device, speed and ISO image path.
31 #
32 export MOUNT_DIALOG='
33 <window title="Burnbox" icon-name="drive-optical">
34 <vbox>
36 <text use-markup="true">
37 <label>
38 "
39 <b>SliTaz - Burnbox</b>"
40 </label>
41 </text>
42 <text wrap="true" width-chars="54" use-markup="true">
43 <label>
44 "
45 Burn ISO images to CD or DVD writer using Wodim from cdrkit.
46 Please verify device write settings, add options if needed
47 and select an ISO image file. You can erase CD-RW with
48 'blank=all' option. Note : You can manipulate ISO images with
49 ISO Master utility.
50 "
51 </label>
52 </text>
54 <frame Configuration>
55 <hbox>
56 <text use-markup="true">
57 <label>"<b>Device :</b>"</label>
58 </text>
59 <entry>
60 <default>/dev/cdrom</default>
61 <variable>DEVICE</variable>
62 </entry>
63 </hbox>
64 <hbox>
65 <text use-markup="true">
66 <label>"<b>Speed :</b>"</label>
67 </text>
68 <entry>
69 <input>cat /proc/sys/dev/cdrom/info | grep "drive speed" | cut -f 3</input>
70 <variable>SPEED</variable>
71 </entry>
72 </hbox>
73 <hbox>
74 <text use-markup="true">
75 <label>"<b>Options :</b>"</label>
76 </text>
77 <entry>
78 <default>-eject -multi</default>
79 <variable>OPTIONS</variable>
80 </entry>
81 </hbox>
82 </frame>
84 <frame ISO image>
85 <hbox>
86 <text use-markup="true">
87 <label>"<b>File :</b>"</label>
88 </text>
89 <entry>
90 <variable>ISO_IMAGE</variable>
91 </entry>
92 <button>
93 <input file stock="gtk-cdrom"></input>
94 <action type="fileselect">ISO_IMAGE</action>
95 </button>
96 </hbox>
97 </frame>
99 <hbox>
100 <button>
101 <input file icon="help"></input>
102 <action>xterm -sb -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 95x25 -title "wodim help" -e "wodim --help ; echo -e \"----\nENTER to continue...\" && read close"</action>
103 </button>
104 <button>
105 <label>Burn</label>
106 <input file icon="forward"></input>
107 <action>echo "Burning $ISO_IMAGE..."</action>
108 <action>gtkdialog --program=BURN_DIALOG</action>
109 </button>
110 <button>
111 <input file icon="exit"></input>
112 <action type="exit">Exit</action>
113 </button>
114 </hbox>
116 </vbox>
117 </window>
118 '
120 # Execute main dialog.
121 gtkdialog --program=MOUNT_DIALOG
123 exit 0