X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml2iso;h=24096ec6d62b5cdc9c65e0e0fae59312846a00eb;hb=752b503c46f24f8b1346af62ef11ecabc44f5dfc;hp=3e48b35517235f15c999dfd043dd82487e4ea210;hpb=7494e3f255313238eda9d6bfe3f96648b9adbb38;p=grml2usb.git diff --git a/grml2iso b/grml2iso index 3e48b35..24096ec 100755 --- a/grml2iso +++ b/grml2iso @@ -44,7 +44,7 @@ Options: -c Directory Copy files from directory to generated ISO -f Force overwrite of existing target.iso -r BootParam Remove specified boot params. - Could be specfied multiple times. + Can be specified multiple times. -p Add the specified parameter to the grml2usb commandline. For a list of valid parameters have a look at the grml2usb manpage. @@ -248,8 +248,8 @@ Options: # pad the output ISO to multiples of 256 KiB for partition table support {{{ siz=$($getfilesize "$ISOFILE") - cyls=$(echo "$siz / 512 / 32 / 16 + 1" | bc) # C=$cyls H=16 S=32 - ofs=$(echo "$cyls * 16 * 32 * 512 - 1" | bc) # padding offset (size - 1) + cyls=$(($siz / 512 / 32 / 16 + 1)) # C=$cyls H=16 S=32 + ofs=$(($cyls * 16 * 32 * 512 - 1)) # padding offset (size - 1) dd if=/dev/zero bs=1 count=1 seek=$ofs of="$ISOFILE" 2>/dev/null # }}}