Last change
on this file since 3700 was 355, checked in by bcornec, 19 years ago |
Adds everything related to mondo cd creation
|
-
Property svn:executable
set to
*
|
File size:
1014 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | if [ ! -e "setup" ] || [ ! -e "TGZS" ] || [ ! -e "SRPMS" ] ; then
|
---|
4 | echo "You're in the wrong directory."
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 | rm -f mindi-[0-1]*tgz
|
---|
8 | rm -f mondo-[1-2]*tgz
|
---|
9 |
|
---|
10 | set -e
|
---|
11 | cp -f /root/images/mindi/mindi-boot.2880.img images
|
---|
12 | for i in mondoarchive mondorestore mindi ; do
|
---|
13 | if which $i 2> /dev/null ; then
|
---|
14 | cp -f `which $i` stuff
|
---|
15 | fi
|
---|
16 | done
|
---|
17 | cp -f /usr/local/mindi-kernel-1.x/mindi-kernel-1.0-1.i386.rpm /home/MondoCD/RPMS/
|
---|
18 | cp -f /usr/local/mindi-kernel-1.x/mindi-kernel-1.0.tgz /home/MondoCD/TGZS/
|
---|
19 |
|
---|
20 | rm -Rf /home/MondoCD/documentation/1.6x-howto
|
---|
21 | cp -pRdf /mnt/winB/mondorescue/docs/1.6x-howto /home/MondoCD/documentation
|
---|
22 | # -b images/mindi-boot.2880.img
|
---|
23 | mkisofs -c boot.cat -b memtest.img -J -r \
|
---|
24 | -p MondoRescue -P www.microwerks.net/~hugo/ -A Mondo_Rescue_GPL_Version \
|
---|
25 | . > /tmp/out.iso
|
---|
26 | dev=`cdrecord -scanbus | grep "CD-ROM" | grep -v "DVD" | tr -s '\t' ' ' | cut -d' ' -f2`
|
---|
27 | cdrecord dev=$dev speed=10 blank=fast -eject -v /tmp/out.iso || \
|
---|
28 | cdrecord dev=$dev speed=24 -eject -v /tmp/out.iso
|
---|
29 | exit $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.