#!/bin/bash
SPEED=8 # 設定燒錄速度,8倍速
IMAGEFILE=cdimage.iso
CONTENTSFILE=contents
defaultdir=/opt #預定燒錄目錄
if [ -z "$1" ]
then
IMAGE_DIRECTORY=$DEFAILTDIR
else
IMAGE_DIRECTORY=$1
fi
ls -LRF $IMAGE_DIRECTORY > $IMAGE_DIRECTORY/$CONTENTSFILE
echo " Creating table of contents."
mkisofs -r -o $IMAGEFILE $ IMAGE_DIRECTORY
echo "Creat ISO9660 file system image"
cdrecord -v -isosize speed=$SPEED dev=3,0 $IMAGEFILE
echo "Burning the disk"
echo "Please be prtient, this will take a while."
#dev=3,0 必需與實際燒錄系統符合,可用 cdrecord -scanbus查詢
全站熱搜
留言列表