Shell Skript: Diskcopy
Dieses Skript ermöglicht das einfache kopieren von Disketten.
############################################################################
## ##
## Diskcopy ##
## ##
## Creation: 05.04.2002 ##
## Last Update: 19.06.2005 ##
## ##
## Copyright (c) 2002-2005 by Georg Kainzbauer <http://www.gtkdb.de> ##
## ##
## This program is free software; you can redistribute it and/or modify ##
## it under the terms of the GNU General Public License as published by ##
## the Free Software Foundation; either version 2 of the License, or ##
## (at your option) any later version. ##
## ##
############################################################################
#!/bin/bash
echo
echo "Quelldiskette einlegen"
echo
pause()
{
echo -n "Bitte RETURN druecken:"
read q
}
pause
echo
dd bs=1024 if=/dev/fd0 of=/tmp/floppy.img
echo
echo "Zieldiskette einlegen"
echo
pause()
{
echo -n "Bitte RETURN druecken:"
read q
}
pause
echo
dd bs=1024 if=/tmp/floppy.img of=/dev/fd0
echo
yesno()
{
while true
do
echo -n "$1 (j/n):"
read ein
case "$ein" in
[yYjJ]*) return 0 ;;
[nN]*) return 1 ;;
*) echo "Bitte j oder n eingeben." ;;
esac
done
}
while yesno "Wollen Sie eine weitere Kopie erstellen?"
do
echo
echo "Zieldiskette einlegen"
echo
pause()
{
echo -n "Bitte RETURN druecken:"
read q
}
pause
echo
dd bs=1024 if=/tmp/floppy.img of=/dev/fd0
done
rm /tmp/floppy.img
## ##
## Diskcopy ##
## ##
## Creation: 05.04.2002 ##
## Last Update: 19.06.2005 ##
## ##
## Copyright (c) 2002-2005 by Georg Kainzbauer <http://www.gtkdb.de> ##
## ##
## This program is free software; you can redistribute it and/or modify ##
## it under the terms of the GNU General Public License as published by ##
## the Free Software Foundation; either version 2 of the License, or ##
## (at your option) any later version. ##
## ##
############################################################################
#!/bin/bash
echo
echo "Quelldiskette einlegen"
echo
pause()
{
echo -n "Bitte RETURN druecken:"
read q
}
pause
echo
dd bs=1024 if=/dev/fd0 of=/tmp/floppy.img
echo
echo "Zieldiskette einlegen"
echo
pause()
{
echo -n "Bitte RETURN druecken:"
read q
}
pause
echo
dd bs=1024 if=/tmp/floppy.img of=/dev/fd0
echo
yesno()
{
while true
do
echo -n "$1 (j/n):"
read ein
case "$ein" in
[yYjJ]*) return 0 ;;
[nN]*) return 1 ;;
*) echo "Bitte j oder n eingeben." ;;
esac
done
}
while yesno "Wollen Sie eine weitere Kopie erstellen?"
do
echo
echo "Zieldiskette einlegen"
echo
pause()
{
echo -n "Bitte RETURN druecken:"
read q
}
pause
echo
dd bs=1024 if=/tmp/floppy.img of=/dev/fd0
done
rm /tmp/floppy.img
Dieser Eintrag wurde am 26.11.2004 erstellt und zuletzt am 05.04.2015 bearbeitet.
Direkter Link zu dieser Seite: http://www.gtkdb.de/index_7_843.html
[ Zur Startseite ] [ Zur Kategorie ]
© 2004-2021 by Georg Kainzbauer