#! /bin/sh #---------------------------------------------------------------------------- # system-devices-format-floppy - format floppy disk # # Creation : 2003-07-19 fm # Last Update: $Id$ # # Copyright (c) 2003-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # 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. #---------------------------------------------------------------------------- . /var/install/include/eislib ASK=/var/install/bin/ask clrhome mecho --info "Format floppy disk" echo echo _ask_tmpfile=$(mktemp -t XXXXXXXXXXXXX) ${ASK} "Format floppy disk" "yes" > ${_ask_tmpfile} rc=${?} read answer < ${_ask_tmpfile} rm -f ${_ask_tmpfile} if [ ${rc} = 255 ] then exit 127 fi case ${answer} in no) exit 0 ;; yes) fdformat /dev/fd0h1440 mformat a: ;; esac anykey exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------