Patch: tazusb - Make comments consistent. Fix typos. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz <slitaz@xxxxxxxxxxxxxxxxxxx>
- Subject: Patch: tazusb - Make comments consistent. Fix typos.
- From: "Mike D. Smith" <mikedsmith25@xxxxxxxxx>
- Date: Mon, 14 Jul 2008 07:46:56 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=D+WJc+s8C8qE/0QaPaVkS77IZH76Ux23nYevDUJ5ltM=; b=V7W9B1pZXtaGnpZ0R9w9O8qbUjkcwNKRLUCjyGvfKY2qiv2vyWbvcK3qv6tFdNH4GX M2RZ1897cH6Lz/X4XvkFdPkzVvO2SfXkTKP3UDFsDpBcXWchQPSjAyJLlHoK8Zyiquev wjULBsHZa9xkkOLUtjVPzmWpCJKB8MbgZnjZo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=RRRUMhko7ndCwwus2vulW26jVR3xBkrqVOAjDuxVeiz7ITgwXs2WHQ3gUujmkb3giy 8JhuXfwvye9i2OhpCELOxRx8Vu5mwOEO2+j3Gie4riryFespzj7peku9SIsZ3DWDI2fB DRnFVpS3380YjciJgShdbb4mQi0ViIgLiWhuM=
Here's a patch to make comments more consistent and fix some typos.
-Mike
-----
# HG changeset patch
# User Mike D. Smith <MikeDSmith25@xxxxxxxxx>
# Date 1216013785 0
# Node ID fd2bd8c5fd7112cd4c74d63aa2664cc891b06bf3
# Parent 79b613602d665e1cc2ff7d50f849420995721a73
Make comments consistent. Fix typos.
diff -r 79b613602d66 -r fd2bd8c5fd71 README
--- a/README Mon Jul 14 05:35:01 2008 +0000
+++ b/README Mon Jul 14 05:36:25 2008 +0000
@@ -2,7 +2,7 @@
===============================================================================
-SliTaz LveUSB utility aka TazUSB. Please read the manual for more informations.
+SliTaz LiveUSB utility aka TazUSB. Please read the manual for more information.
===============================================================================
diff -r 79b613602d66 -r fd2bd8c5fd71 tazusb
--- a/tazusb Mon Jul 14 05:35:01 2008 +0000
+++ b/tazusb Mon Jul 14 05:36:25 2008 +0000
@@ -207,7 +207,7 @@
# ext/syslinux install
install_boot()
{
- #decide if we're installing syslinux or extlinux
+ # Decide if we're installing syslinux or extlinux
if [ "$FSTYPE" = "vfat" ]; then
ST=syslinux
STC="syslinux -d /boot/syslinux/ $DEVICE"
@@ -226,7 +226,7 @@
cp /media/cdrom/boot/isolinux/isolinux.cfg $TARGET_ROOT/boot/$ST/$ST.$STE
sed -i -e "s/isolinux.msg/$ST.msg/" $TARGET_ROOT/boot/$ST/$ST.$STE
- # Add home= to apppend in extlinux or syslinux.cfg
+ # Add home= to append in extlinux or syslinux.cfg
sed -i -e "s/\(append.*\)/\1 home=$UUID/" $TARGET_ROOT/boot/$ST/$ST.$STE
# Splash screen and help files.
@@ -245,7 +245,7 @@
sed -i s/isolinux.msg/$ST.msg/ $cfg
done
- # Modifing include file if exist.
+ # Modifing include file if exists.
if [ -f $TARGET_ROOT/boot/$ST/common.inc ]; then
sed -i -e "s/isolinux.msg/$ST.msg/" $TARGET_ROOT/boot/$ST/common.inc
fi
@@ -290,7 +290,7 @@
}
# Generate a virtual swap file in /home/swap. SliTaz boot script
-# will active it, usefull for low memory system
+# will active it, useful for low memory system
gen_swap_file()
{
echo ""
@@ -325,7 +325,7 @@
echo -en "\033[1mClean\033[0m
===============================================================================
Remove old rootfs.gz.unixtimestamp backup filesystems to free up disk
space.\n\n"
- # locate and interactively remove old filesystems from /home directory
+ # Locate and interactively remove old filesystems from /home directory
for file in `find /home/boot/rootfs.gz.[0-9]*`
do
echo -n "Do you wish to remove: `basename $file` (Yes/no/exit) ? "
@@ -347,14 +347,14 @@
case $COMMAND in
writefs)
- #writefs to rootfs.gz
+ # Writefs to rootfs.gz
check_root
if [ -z $2 ]; then
COMPRESSION=none
else
COMPRESSION=$2
fi
- #start info
+ # Start info
echo ""
echo -e "\033[1mWrite filesystem\033[0m
===============================================================================
@@ -364,10 +364,10 @@
Archive compression: $COMPRESSION"
echo ""
- #clear out tazpkg cache
+ # Clear out tazpkg cache
rm /var/cache/tazpkg/* -r -f
- #optionally remove sound card selection
+ # Optionally remove sound card selection
echo -n "Do you wish to remove the sound card selection (Yes/no/exit) ? "
read anser
case $anser in
@@ -385,7 +385,7 @@
esac
status
- #create list of files
+ # Create list of files
find /bin /etc /init /sbin /var /dev /lib /root /usr >/tmp/list
for dir in /home /proc /sys /tmp /mnt /media /media/cdrom
/media/flash /media/usbdisk
@@ -393,7 +393,7 @@
echo $dir >>/tmp/list
done
- #genHTML cleanup, make use of stylesheet initramfs with specified compression
+ # Gen initramfs with specified compression
if [ "$COMPRESSION" = "lzma" ]; then
echo -n "Creating rootfs.gz with lzma compression... "
cat /tmp/list | cpio -o -H newc | lzma e -si -so > /rootfs.gz
@@ -407,15 +407,14 @@
cat /tmp/list | cpio -o -H newc > /rootfs.gz
fi
- #get initramfs size
+ # Get initramfs size
size=`du -sh /rootfs.gz | cut -f 1`
- #if the bootable medium is where it should be, copy across
-
+ # If the bootable medium is where it should be, copy across
if (test -e /home/boot/bzImage); then
echo "Moving rootfs.gz to media. Remember to unmount for delayed writes!"
- #move the old filesystem with the unix timestamp for reference
+ # Move the old filesystem with the unix timestamp for reference
if (test -e /home/boot/previous.gz); then
mv /home/boot/previous.gz /home/boot/rootfs.gz.$(date +%s)
fi
---
SliTaz GNU/Linux Mailing list.
Web site : http://www.slitaz.org/