tazusb rev 31 1.2.2
Fix typos and make comments consistent
author | Mike D. Smith <MikeDSmith25@gmail.com> |
---|---|
date | Sat Jul 19 05:15:14 2008 +0000 (2008-07-19) |
parents | 0f0a9320e571 |
children | 42dc7ff2a6f8 |
files | README tazusb |
line diff
1.1 --- a/README Wed Jun 25 15:59:58 2008 +0200 1.2 +++ b/README Sat Jul 19 05:15:14 2008 +0000 1.3 @@ -2,7 +2,7 @@ 1.4 =============================================================================== 1.5 1.6 1.7 -SliTaz LveUSB utility aka TazUSB. Please read the manual for more informations. 1.8 +SliTaz LiveUSB utility aka TazUSB. Please read the manual for more information. 1.9 1.10 1.11 ===============================================================================
2.1 --- a/tazusb Wed Jun 25 15:59:58 2008 +0200 2.2 +++ b/tazusb Sat Jul 19 05:15:14 2008 +0000 2.3 @@ -207,7 +207,7 @@ 2.4 # ext/syslinux install 2.5 install_boot() 2.6 { 2.7 - #decide if we're installing syslinux or extlinux 2.8 + # Decide if we're installing syslinux or extlinux 2.9 if [ "$FSTYPE" = "vfat" ]; then 2.10 ST=syslinux 2.11 STC="syslinux -d /boot/syslinux/ $DEVICE" 2.12 @@ -226,7 +226,7 @@ 2.13 cp /media/cdrom/boot/isolinux/isolinux.cfg $TARGET_ROOT/boot/$ST/$ST.$STE 2.14 sed -i -e "s/isolinux.msg/$ST.msg/" $TARGET_ROOT/boot/$ST/$ST.$STE 2.15 2.16 - # Add home= to apppend in extlinux or syslinux.cfg 2.17 + # Add home= to append in extlinux or syslinux.cfg 2.18 sed -i -e "s/\(append.*\)/\1 home=$UUID/" $TARGET_ROOT/boot/$ST/$ST.$STE 2.19 2.20 # Splash screen and help files. 2.21 @@ -245,7 +245,7 @@ 2.22 sed -i s/isolinux.msg/$ST.msg/ $cfg 2.23 done 2.24 2.25 - # Modifing include file if exist. 2.26 + # Modifing include file if exists. 2.27 if [ -f $TARGET_ROOT/boot/$ST/common.inc ]; then 2.28 sed -i -e "s/isolinux.msg/$ST.msg/" $TARGET_ROOT/boot/$ST/common.inc 2.29 fi 2.30 @@ -290,7 +290,7 @@ 2.31 } 2.32 2.33 # Generate a virtual swap file in /home/swap. SliTaz boot script 2.34 -# will active it, usefull for low memory system 2.35 +# will active it, useful for low memory system 2.36 gen_swap_file() 2.37 { 2.38 echo "" 2.39 @@ -325,7 +325,7 @@ 2.40 echo -en "\033[1mClean\033[0m 2.41 =============================================================================== 2.42 Remove old rootfs.gz.unixtimestamp backup filesystems to free up disk space.\n\n" 2.43 - # locate and interactively remove old filesystems from /home directory 2.44 + # Locate and interactively remove old filesystems from /home directory 2.45 for file in `find /home/boot/rootfs.gz.[0-9]*` 2.46 do 2.47 echo -n "Do you wish to remove: `basename $file` (Yes/no/exit) ? " 2.48 @@ -347,14 +347,14 @@ 2.49 2.50 case $COMMAND in 2.51 writefs) 2.52 - #writefs to rootfs.gz 2.53 + # Writefs to rootfs.gz 2.54 check_root 2.55 if [ -z $2 ]; then 2.56 COMPRESSION=none 2.57 else 2.58 COMPRESSION=$2 2.59 fi 2.60 - #start info 2.61 + # Start info 2.62 echo "" 2.63 echo -e "\033[1mWrite filesystem\033[0m 2.64 =============================================================================== 2.65 @@ -364,10 +364,10 @@ 2.66 Archive compression: $COMPRESSION" 2.67 echo "" 2.68 2.69 - #clear out tazpkg cache 2.70 + # Clear out tazpkg cache 2.71 rm /var/cache/tazpkg/* -r -f 2.72 2.73 - #optionally remove sound card selection 2.74 + # Optionally remove sound card selection 2.75 echo -n "Do you wish to remove the sound card selection (Yes/no/exit) ? " 2.76 read anser 2.77 case $anser in 2.78 @@ -385,7 +385,7 @@ 2.79 esac 2.80 status 2.81 2.82 - #create list of files 2.83 + # Create list of files 2.84 find /bin /etc /init /sbin /var /dev /lib /root /usr >/tmp/list 2.85 2.86 for dir in /home /proc /sys /tmp /mnt /media /media/cdrom /media/flash /media/usbdisk 2.87 @@ -393,7 +393,7 @@ 2.88 echo $dir >>/tmp/list 2.89 done 2.90 2.91 - #gen initramfs with specified compression 2.92 + # Generate initramfs with specified compression 2.93 if [ "$COMPRESSION" = "lzma" ]; then 2.94 echo -n "Creating rootfs.gz with lzma compression... " 2.95 cat /tmp/list | cpio -o -H newc | lzma e -si -so > /rootfs.gz 2.96 @@ -407,15 +407,14 @@ 2.97 cat /tmp/list | cpio -o -H newc > /rootfs.gz 2.98 fi 2.99 2.100 - #get initramfs size 2.101 + # Get initramfs size 2.102 size=`du -sh /rootfs.gz | cut -f 1` 2.103 2.104 - #if the bootable medium is where it should be, copy across 2.105 - 2.106 + # If the bootable medium is where it should be, copy across 2.107 if (test -e /home/boot/bzImage); then 2.108 echo "Moving rootfs.gz to media. Remember to unmount for delayed writes!" 2.109 2.110 - #move the old filesystem with the unix timestamp for reference 2.111 + # Move the old filesystem with the unix timestamp for reference 2.112 if (test -e /home/boot/previous.gz); then 2.113 mv /home/boot/previous.gz /home/boot/rootfs.gz.$(date +%s) 2.114 fi