z80pack: createdrives is obsolete
authorAlan Cox <alan@linux.intel.com>
Sat, 21 Jul 2018 18:10:26 +0000 (19:10 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 21 Jul 2018 18:10:26 +0000 (19:10 +0100)
Kernel/platform-z80pack/createdrives [deleted file]

diff --git a/Kernel/platform-z80pack/createdrives b/Kernel/platform-z80pack/createdrives
deleted file mode 100755 (executable)
index 7f64075..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-#!/bin/sh
-
-BASEDIR=`dirname $0`
-UTILDIR="${BASEDIR}/../../Applications/util"
-UCP="${BASEDIR}/../../Standalone/ucp"
-MKFS="${BASEDIR}/../../Standalone/mkfs"
-DISK1BINS="cat cp df fdisk fsck kill ln ls mkdir mknod mount ps ssh rm rmdir"
-DISK2BINS="banner basename bd cal chgrp chmod chown cksum cmp cut date dd decomp16 dirname dosread du echo ed false fgrep fsck grep head id init ll logname man mkfs mkfifo more mv od pagesize passwd patchcpm printenv prtroot pwd sleep sort stty sum su sync tee tail touch tr true umount uniq uud uue wc which who whoami write xargs sed yes"
-DISK1DIRS="dev bin etc lib root home usr tmp"
-DISK2DIRS="bin cpm"
-DEVS="fd0 60644 0
-fd1 60644 1
-hda 60644 256
-tty1 20666 513
-null 20622 1024
-kmem 20622 1025
-zero 20622 1026
-proc 20622 1027
-"
-
-BOOTBLOCK="${BASEDIR}/bootblock.bin"
-KERNEL="${BASEDIR}/../fuzix.bin"
-DISK1="drivea.cpm"
-DISK2="drivei.cpm"
-
-if [ ! -e $BOOTBLOCK ]; then
-       echo "$0: Can't find bootblock.bin, build kernel first."
-       exit 1
-fi
-
-if [ ! -e $KERNEL ]; then
-       echo "$0: Can't find fuzix.bin, build kernel first."
-       exit 1
-fi
-
-if [ ! -e ${UTILDIR}/init ]; then
-       echo "$0: Can't find init, build userspace applications first."
-       exit 1
-fi
-
-if [ -e $DISK1 ]; then
-       rm $DISK1
-fi
-
-if [ -e $DISK2 ]; then
-       rm $DISK2
-fi
-
-$MKFS $DISK1 8 390
-if [ $? != 0 ]; then
-       echo "$0: Error creating first disk"
-       exit 1
-fi
-
-$MKFS $DISK2 64 8192
-if [ $? != 0 ]; then
-       echo "$0: Error creating second disk"
-       exit 1
-fi
-
-for DIR in $DISK1DIRS; do
-       $UCP $DISK1 "mkdir $DIR" &> /dev/null
-       if [ $? != 0 ]; then
-               echo "$0: Error creating directory \"$DIR\""
-               exit 1
-       fi
-done
-
-for DIR in $DISK2DIRS; do
-       $UCP $DISK2 "mkdir $DIR" &> /dev/null
-       if [ $? != 0 ]; then
-               echo "$0: Error creating directory \"$DIR\""
-               exit 1
-       fi
-done
-
-IFS="
-"
-
-for DEV in $DEVS; do
-       $UCP $DISK1 "cd /dev ; mknod $DEV" &> /dev/null
-       if [ $? != 0 ]; then
-               echo "$0: Error creating device \"$DEV\""
-               exit 1
-       fi
-done
-
-IFS=" "
-
-$UCP $DISK1 "bget $UTILDIR/init" &> /dev/null
-$UCP $DISK1 "chmod 755 init" &> /dev/null
-
-for FILE in $DISK1BINS; do
-       $UCP $DISK1 "cd /bin ; bget $UTILDIR/$FILE" &> /dev/null
-       $UCP $DISK1 "cd /bin ; chmod 755 $FILE" &> /dev/null
-       if [ $? != 0 ]; then
-               echo "$0: Error copying file \"$FILE\""
-               exit 1
-       fi
-done
-
-for FILE in $DISK2BINS; do
-       $UCP $DISK2 "cd /bin ; bget $UTILDIR/$FILE" &> /dev/null
-       $UCP $DISK2 "cd /bin ; chmod 755 $FILE" &> /dev/null
-       if [ $? != 0 ]; then
-               echo "$0: Error copying file \"$FILE\""
-               exit 1
-       fi
-done
-
-TMPUCP=`mktemp -d /tmp/ucpXXXXXXXX`
-echo "root::0:0:superuser:/root:/bin/ssh" > $TMPUCP/passwd
-echo "root::0:root" > $TMPUCP/group
-echo "rootfs / rootfs rw 0 0" > $TMPUCP/mtab
-
-$UCP $DISK1 "cd /etc ; bget $TMPUCP/passwd" &> /dev/null
-$UCP $DISK1 "cd /etc ; bget $TMPUCP/group" &> /dev/null
-$UCP $DISK1 "cd /etc ; bget $TMPUCP/mtab" &> /dev/null
-
-rm $TMPUCP/passwd
-rm $TMPUCP/group
-rm $TMPUCP/mtab
-rmdir $TMPUCP
-
-mv $DISK1 ${DISK1}.tmp
-dd if=$KERNEL of=$DISK1 bs=1 seek=199680 conv=notrunc
-dd if=${DISK1}.tmp of=$DISK1 conv=notrunc
-dd if=$BOOTBLOCK of=$DISK1 conv=notrunc
-rm ${DISK1}.tmp
-
-echo "z80pack drives \"drivea.cpm\" and \"drivei.cpm\" successfully generated"
-
-exit 0
-