wok-current diff syslinux/stuff/iso2exe/taziso @ rev 20771
cpige: add man page for cook.slitaz.org
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 13 16:56:42 2019 +0100 (2019-02-13) |
parents | 378b0ba41272 |
children | 02c70d036ea0 |
line diff
1.1 --- a/syslinux/stuff/iso2exe/taziso Wed Feb 13 10:43:31 2019 +0100 1.2 +++ b/syslinux/stuff/iso2exe/taziso Wed Feb 13 16:56:42 2019 +0100 1.3 @@ -309,11 +309,9 @@ 1.4 DEV="$(blkid | grep -iE "(msdos|vfat|ntfs|ext[234]|xfs|btrfs)" | sed 's/:.*//;s|/dev/||')" 1.5 [ "$DEV" ] || return 1.6 cat > /tmp/dialog$$ <<EOT 1.7 -$DIALOG --clear \ 1.8 - --title " Select your Linux/Windows partition " \ 1.9 +$DIALOG --clear --title " Select your Linux/Windows partition " \ 1.10 --menu "\nPlease select the Linux/Windows partition according to its known size. 1.11 -The data will be kept untouched.\n" \ 1.12 - 17 70 8 \ 1.13 +The data will be kept untouched.\n" 17 70 8 \ 1.14 $(for i in $DEV ; do 1.15 label="$(blkid | sed "/$i:/!d;s/.*://;s/[^ ]*UUID=[^ ]* //g;s/LABEL=//")" 1.16 echo -n "/dev/$i \"$(($(cat /sys/block/*/$i/size)/2048))MB $label\" " 1.17 @@ -333,18 +331,14 @@ 1.18 { 1.19 packages_list= 1.20 packages_dir= 1.21 - $DIALOG --clear \ 1.22 - --title " Extra packages " \ 1.23 + $DIALOG --clear --title " Extra packages " \ 1.24 --defaultno --yesno \ 1.25 -" 1.26 -Do you want to add extra packages ? 1.27 -" 7 70 1.28 +"Do you want to add extra packages ?" 7 70 1.29 [ $? -eq 0 ] || return 1.30 [ -s /var/lib/tazpkg/packages.txt ] || tazpkg recharge 1.31 if [ -s $media/boot/vmlinuz-$(uname -r) ]; then 1.32 cat > /tmp/dialog$$ <<EOT 1.33 -$DIALOG --clear \ 1.34 - --title " Select the packages " \ 1.35 +$DIALOG --clear --title " Select the packages " \ 1.36 --separate-output \ 1.37 --cancel-label "Skip" \ 1.38 --checklist "Please select the packages you want to install. Try with the first letter." \ 1.39 @@ -358,8 +352,7 @@ 1.40 cat > /tmp/dialog$$ <<EOT 1.41 $DIALOG --clear \ 1.42 --title "Please select the directory with every custom package to install." \ 1.43 - --cancel-label "Skip" \ 1.44 - --dselect $PWD 13 78 1.45 + --cancel-label "Skip" --dselect $PWD 13 78 1.46 EOT 1.47 sh /tmp/dialog$$ 2> /tmp/dialog.out$$ 1.48 [ $? -eq 0 ] && packages_dir="$(cat /tmp/dialog.out$$)" 1.49 @@ -369,19 +362,17 @@ 1.50 _install() 1.51 { 1.52 extra_packages 1.53 - $DIALOG --clear \ 1.54 - --title " SliTaz UMSDOS way installation " \ 1.55 + $DIALOG --clear --title " SliTaz UMSDOS way installation " \ 1.56 --yes-label "Install" --yesno \ 1.57 "\nSliTaz will be installed in the subdirectory \\slitaz of the current 1.58 Linux/DOS/Windows partition. You can see your files from /mnt/dos.\n\n 1.59 You can start SliTaz with \\slitaz\\boot\\tazboot.exe\n\n 1.60 To uninstall SliTaz, you have only to remove this directory. 1.61 The file \\boot.ini or \\config.sys may be modified too.\n\n 1.62 -SliTaz may run slowly on the 'UMSDOS way' installation due to the 1.63 +SliTaz may run slowly on the 'UMSDOS way' installation due to the 1.64 posixovl filesystem. The 'TAZUSB way' installation runs faster.\n\n 1.65 To do a traditional installation with disk partitioning, 1.66 -start SliTaz Live with the 'SliTaz RAM boot' menu.\n 1.67 -" 19 70 1.68 +start SliTaz Live with the 'SliTaz RAM boot' menu.\n" 19 70 1.69 [ $? -eq 0 ] || return 1.70 doinstall 1.71 } 1.72 @@ -499,8 +490,7 @@ 1.73 1.74 _installtaz() 1.75 { 1.76 - $DIALOG --clear \ 1.77 - --title " SliTaz TAZUSB way installation " \ 1.78 + $DIALOG --clear --title " SliTaz TAZUSB way installation " \ 1.79 --yes-label "Install" --yesno \ 1.80 "\nSliTaz will be installed in the subdirectory \\slitaz of the current 1.81 Linux/DOS/Windows partition. You can see your files from /mnt/dos.\n\n 1.82 @@ -510,8 +500,7 @@ 1.83 The filesystem is loaded entirely into memory upon boot to 1.84 increase responsiveness. Only /home lands on the hard disk.\n\n 1.85 To do a traditional installation with disk partitioning, 1.86 -start SliTaz Live with the 'SliTaz RAM boot' menu.\n 1.87 -" 19 70 1.88 +start SliTaz Live with the 'SliTaz RAM boot' menu.\n" 19 70 1.89 [ $? -eq 0 ] || return 1.90 doinstall tazusblike 1.91 } 1.92 @@ -566,13 +555,12 @@ 1.93 tazboot() 1.94 { 1.95 if [ -z "$1" ]; then 1.96 - $DIALOG --clear \ 1.97 - --title " SliTaz bootloader for DOS " \ 1.98 + $DIALOG --clear --title " SliTaz bootloader for DOS " \ 1.99 --yes-label "Install" --yesno \ 1.100 "\nThe file TAZBOOT.EXE will be created in the top directory. It supports 1.101 any linux kernel, multiple initramfs, a kernel command line and 1.102 an ISO image file loopback (retrieves files from an ISO file).\n\n 1.103 -Usage: tazboot.exe [[@commands]|[kernel=<bzimage>] 1.104 +Usage: tazboot.exe [[@commands]|[kernel=<bzimage>] 1.105 [initrd=<rootfs>[,<rootfs2>...]] [bootfrom=<isofile>] cmdline args ...]\n\n 1.106 Defaults: tazboot @tazboot.cmd or tazboot kernel=bzImage auto\n\n\ 1.107 Examples for tazboot.cmd:\n\n\ 1.108 @@ -581,8 +569,7 @@ 1.109 initrd=boot/rootfs4.gz,boot/rootfs3.gz,boot/rootfs2.gz,boot/rootfs1.gz\n\ 1.110 rw root=/dev/null autologin\n\n\ 1.111 kernel=\\slitaz\\vmlinuz root=/dev/sda5 ro\n\n 1.112 -Unlike GRUB4DOS, it doesn't require unfragmented ISO image files.\n 1.113 -" 0 0 1.114 +Unlike GRUB4DOS, it doesn't require unfragmented ISO image files.\n" 0 0 1.115 [ $? -eq 0 ] || return 1.116 fi 1.117 gettazboot tazboot.exe 1.118 @@ -598,8 +585,7 @@ 1.119 if [ "$1" ]; then 1.120 cat /tmp/data 1.121 else 1.122 - $DIALOG --clear \ 1.123 - --title " Checked files " \ 1.124 + $DIALOG --clear --title " Checked files " \ 1.125 --textbox /tmp/data 0 0 1.126 fi 1.127 rm -f /tmp/data 1.128 @@ -627,23 +613,19 @@ 1.129 if [ "$1" ]; then 1.130 cat $file 1.131 else 1.132 - $DIALOG --clear \ 1.133 - --title " Readme " \ 1.134 - --textbox $file 0 0 1.135 + $DIALOG --clear --title " Readme " --textbox $file 0 0 1.136 fi 1.137 } 1.138 1.139 bzimage() 1.140 { 1.141 if [ -z "$1" ]; then 1.142 - $DIALOG --clear \ 1.143 - --title " Create linux.exe ? " \ 1.144 + $DIALOG --clear --title " Create linux.exe ? " \ 1.145 --yes-label "Install" --yesno \ 1.146 "\nLinux.exe launches the linux kernel under DOS (in real mode only). 1.147 The cmdline arguments are supported except initrd=, 1.148 vga= (you can try 'rdev -v') and mem= (partially). 1.149 -\nExample:\nC:\\> linux.exe root=/dev/hda2 ro panic=60\n 1.150 -" 12 70 1.151 +\nExample:\nC:\\> linux.exe root=/dev/hda2 ro panic=60\n" 12 70 1.152 [ $? -eq 0 ] || return 1.153 fi 1.154 cp $media/boot/bzImage linux.exe 1.155 @@ -653,13 +635,11 @@ 1.156 memtest() 1.157 { 1.158 if [ -z "$1" ]; then 1.159 - $DIALOG --clear \ 1.160 - --title " Create memtest.exe ? " \ 1.161 + $DIALOG --clear --title " Create memtest.exe ? " \ 1.162 --yes-label "Install" --yesno \ 1.163 "\nMemtest86 is a thorough, stand alone memory test for x86 architecture 1.164 computers. BIOS based memory tests are a quick, cursory check and often 1.165 -miss many of the failures that are detected by Memtest86.\n 1.166 -" 0 0 1.167 +miss many of the failures that are detected by Memtest86.\n" 0 0 1.168 [ $? -eq 0 ] || return 1.169 fi 1.170 gotcdfile 'memtest*' && cp $file memtest.exe 1.171 @@ -701,14 +681,12 @@ 1.172 fdmemtest() 1.173 { 1.174 if [ -z "$1" ]; then 1.175 - $DIALOG --clear \ 1.176 - --title " Create a Memtest86 boot floppy " \ 1.177 + $DIALOG --clear --title " Create a Memtest86 boot floppy " \ 1.178 --yes-label "Create floppy" --yesno \ 1.179 "\nMemtest86 is a thorough, stand alone memory test for x86 architecture 1.180 computers. BIOS based memory tests are a quick, cursory check and often 1.181 miss many of the failures that are detected by Memtest86.\n\n 1.182 -Please insert a blank disk in floppy drive.\n 1.183 -" 0 0 1.184 +Please insert a blank disk in floppy drive.\n" 0 0 1.185 [ $? -eq 0 ] || return 1.186 fi 1.187 gotcdfile 'memtest*' && mkfloppy $file 1.188 @@ -718,14 +696,12 @@ 1.189 { 1.190 gotcdfile '?pxe*' 1.191 if [ -z "$1" ]; then 1.192 - $DIALOG --clear \ 1.193 - --title " Create $(basename $file).exe ? " \ 1.194 + $DIALOG --clear --title " Create $(basename $file).exe ? " \ 1.195 --yes-label "Install" --yesno \ 1.196 "\nBoot your operating system from the internet and enjoy a full system 1.197 working entirely in RAM with speed and stability in mind. The Linux Kernel 1.198 and the complete SliTaz compressed root filesystem will be loaded into RAM 1.199 -from the Web using PXE and HTTP protocols.\n 1.200 -" 0 0 1.201 +from the Web using PXE and HTTP protocols.\n" 0 0 1.202 [ $? -eq 0 ] || return 1.203 fi 1.204 cp $file $(basename $file).exe 1.205 @@ -735,15 +711,13 @@ 1.206 fdpxe() 1.207 { 1.208 if [ -z "$1" ]; then 1.209 - $DIALOG --clear \ 1.210 - --title " Create a SliTaz Web boot floppy " \ 1.211 + $DIALOG --clear --title " Create a SliTaz Web boot floppy " \ 1.212 --yes-label "Create floppy" --yesno \ 1.213 "\nBoot your operating system from the internet and enjoy a full system 1.214 working entirely in RAM with speed and stability in mind. The Linux Kernel 1.215 and the complete SliTaz compressed root filesystem will be loaded into RAM 1.216 from the Web using PXE and HTTP protocols.\n\n 1.217 -Please insert a blank disk in floppy drive.\n 1.218 -" 0 0 1.219 +Please insert a blank disk in floppy drive.\n" 0 0 1.220 [ $? -eq 0 ] || return 1.221 fi 1.222 gotcdfile '?pxe*' && mkfloppy $file 1.223 @@ -901,7 +875,7 @@ 1.224 ddq bs=1 count=$(($cnt % 512)); } > initrd && 1.225 ls -l $PWD/initrd 1.226 break ;; 1.227 - *) break ;; 1.228 + *) break ;; 1.229 esac 1.230 done 1.231 [ "$1" ] && return 0 1.232 @@ -935,7 +909,7 @@ 1.233 ddq bs=512 count=$((cnt / 512)) 1.234 ddq bs=1 count=$((cnt % 512)) 1.235 break ;; 1.236 - *) break ;; 1.237 + *) break ;; 1.238 esac 1.239 done | md5sum | cut -c1-32)" 1.240 [ "$md5" == "$(cat $TMP)" ] && echo "OK" || echo "ERROR" 1.241 @@ -957,8 +931,7 @@ 1.242 grep -qs 1 /sys/block/$DEV/ro && return 1.243 [ "$DEV" ] || return 1.244 cat > /tmp/dialog$$ <<EOT 1.245 -$DIALOG --clear \ 1.246 - --title " Select your USB key " \ 1.247 +$DIALOG --clear --title " Select your USB key " \ 1.248 --menu "\nPlease select the USB key according to its known size.\n\n" \ 1.249 0 0 0 \ 1.250 $(for i in $DEV ; do 1.251 @@ -988,23 +961,21 @@ 1.252 device=$1 1.253 elif [ "$1" ]; then 1.254 echo "Invalid USB key device" 1.255 - return 1 1.256 + return 1 1.257 else 1.258 - $DIALOG --clear \ 1.259 - --title " Create a USB boot key " \ 1.260 + $DIALOG --clear --title " Create a USB boot key " \ 1.261 --yes-label "Continue" --yesno \ 1.262 "\nThe USB key will be used like a CD-ROM. You will not be able to write 1.263 any data on the boot partition.\n\n 1.264 An extra FAT32 partition will be created with the remaining free space.\n\n 1.265 -$(tazusbmsg)Please plug your USB stick in now.\n 1.266 -" 16 70 1.267 +$(tazusbmsg)Please plug your USB stick in now.\n" 16 70 1.268 [ $? -eq 0 ] || return 1.269 usbdev || return 1.270 1.271 # perform dd in progress bar 1.272 max=$(($(stat -c %s "$ISO")/2048)) 1.273 - i=0; ddq if="$ISO" bs=1024k | ( 1.274 - while ddq bs=1024k count=1 ; do 1.275 + i=0; ddq if="$ISO" bs=1024k | ( 1.276 + while ddq bs=1024k count=1 ; do 1.277 i=$(($i + 1)) 1.278 [ $i -gt $max ] && break 1.279 echo $((($i*100)/$max)) | dialog --gauge \ 1.280 @@ -1041,29 +1012,26 @@ 1.281 1.282 usbkey() 1.283 { 1.284 - $DIALOG --clear \ 1.285 - --title " Create a SliTaz USB key " \ 1.286 + $DIALOG --clear --title " Create a SliTaz USB key " \ 1.287 --yes-label "Continue" --yesno \ 1.288 "\nUnlike a hard drive install, the filesystem is kept in a compressed 1.289 rootfs.gz. The filesystem is loaded entirely into memory upon boot. 1.290 This should increase responsiveness, protect the filesystem against 1.291 accidental corruption and reduce read/writes to the USB drive. 1.292 Once setup, the tazusb utility can rewrite the root filesystem 1.293 -with any changes you have made since booting up, 1.294 +with any changes you have made since booting up, 1.295 giving the effective benefits of a hard drive install.\n\n 1.296 /home is mounted on boot using the UUID of your particular flash drive. 1.297 Unlike a device name, the UUID has the benefit of never changing from machine 1.298 to machine.\n\n 1.299 -Please plug your USB stick in now.\n 1.300 -" 19 70 1.301 +Please plug your USB stick in now.\n" 19 70 1.302 [ $? -eq 0 ] || return 1.303 usbdev || return 1.304 exec 3>&1 1.305 format=`$DIALOG --clear \ 1.306 --title " Select the filesystem " \ 1.307 --radiolist "\nPlease select the filesystem type to create.\n\n\ 1.308 -The filesystem creation will erase all the data \ 1.309 -in the USB key." 14 70 4 \ 1.310 +The filesystem creation will erase all the data in the USB key." 14 70 4 \ 1.311 "none" "Do not erase the USB key" on \ 1.312 "ext3" "Ext3 journaling filesystem" off \ 1.313 "ext2" "Ext2 filesystem" off \ 1.314 @@ -1123,8 +1091,7 @@ 1.315 if [ "$1" ]; then 1.316 cat $file 1.317 else 1.318 - $DIALOG --clear \ 1.319 - --title " Flavor info " \ 1.320 + $DIALOG --clear --title " Flavor info " \ 1.321 --textbox $file 0 0 1.322 fi 1.323 rm -rf /tmp/data 1.324 @@ -1216,7 +1183,7 @@ 1.325 i="$(ls $i* | sed q)" 1.326 [ -n "$i" ] && KERNEL=$i && break 1.327 done 1.328 - rm -f /tmp/var$$ 1.329 + rm -f /tmp/var$$ 1.330 [ $(get 514 $KERNEL 4) -eq 1400005704 ] || return 1.331 n=$(($(get 497 $KERNEL 1)+1)) 1.332 ddq bs=512 count=$n if=$KERNEL of=/tmp/fd$$ 1.333 @@ -1332,8 +1299,7 @@ 1.334 if [ "$1" ]; then 1.335 cat /tmp/isoinfo$$ 1.336 else 1.337 - $DIALOG --clear \ 1.338 - --title " Info ISO " \ 1.339 + $DIALOG --clear --title " Info ISO " \ 1.340 --textbox /tmp/isoinfo$$ 0 0 1.341 fi 1.342 rm -f /tmp/isoinfo$$ 1.343 @@ -1379,9 +1345,7 @@ 1.344 1.345 while true; do 1.346 cat > /tmp/dialog$$ <<EOT 1.347 -$DIALOG --clear \ 1.348 - --title " $(isotitle) " \ 1.349 - --menu "" -2 70 0 \ 1.350 +$DIALOG --clear --title " $(isotitle) " --menu "" -2 70 0 \ 1.351 $(cdfile 'README*' "readme" "Show the README file") \ 1.352 $(gotcustomconf "getcustomconf" "Get custom config") \ 1.353 $(gotisomd5 "isomd5" "Check the ISO image") \