]> git.phdru.name Git - audio-cdr-video.git/blob - cdr-dvdrw-tools/dvdrw-boot
Initail import
[audio-cdr-video.git] / cdr-dvdrw-tools / dvdrw-boot
1 #! /bin/sh
2
3 # "Usage $0 label boot.img..."
4
5 if [ -z "$1" ]; then
6    echo -n "Enter CD label: "
7    read label
8 else
9    label="$1"
10    shift
11 fi
12
13 if [ -z "$1" ]; then
14    echo -n "Enter boot image filename: "
15    read boot_img
16 else
17    boot_img="$1"
18 fi
19 shift
20
21 alt_boot=''
22 if [ "$@" ]; then
23    for b in "$@"; do
24       alt_boot="$alt_boot -eltorito-alt-boot -b $b"
25    done
26 fi
27
28 . .config
29 exec dvdrw "$label" -c _boot -b "$boot_img" $alt_boot