1#!/bin/sh
2
3# Copyright 2002 Alain Knaff.
4# This file is part of mtools.
5#
6# Mtools is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
10#
11# Mtools is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with Mtools.  If not, see <http://www.gnu.org/licenses/>.
18
19# Example of a script making a Doc boot disk. Image will be t.img, a
20# FreeDos boot sector is expected in bootsect.dos, and diag contains
21# the system files
22
23IMAGE=t.img
24if [ $# = 1 ] ; then
25   IMAGE=$1
26fi
27
28./mformat -i $IMAGE -C -t 80 -s 18 -h 2 -B bootsect.dos ::
29./mcopy -i $IMAGE diag/io.sys ::IO.SYS
30./mcopy -i $IMAGE diag/msdos.sys ::MSDOS.SYS
31./mcopy -i $IMAGE diag/command.com ::COMMAND.COM
32./mcopy -i $IMAGE diag/drvspace.bin ::DRVSPACE.BIN
33
34./mattrib -i $IMAGE +s +h +r ::io.sys ::msdos.sys ::drvspace.bin
35