#!/bin/bash # # Floppy.variables.sh.txt # ---------------------------- # # Original Files # -------------- # http://Linux-Boot.net/Boot.Standalone/FD/Floppy.Howto.sh.txt # http://Linux-Boot.net/Boot.Standalone/FD/Floppy.variables.sh.txt # # # 08-Mar-05 amo Date-of-Birth # 16-Mar-05 amo Split apart Standalone-BootFloppy-Howto into sections # 25-Mar-05 amo ReOrg for Bootable FD, CF, CD, USB # # # # Remember where we are # ---------------------- OrigPWD=`pwd` # VER="2005-0325" # # # ======================================== # # # # Check for Errors in between each step # # # ======================================== # # # Run the command and show status # ------------------------------- function doecho() { cmd=$1 # # echo "$cmd" # if [ "$cmd" != "#" ]; then # eval "$cmd" # if [ $? != 0 ]; then echo "#" echo "# ERROR: FAILED: $cmd " echo "#" # exit 1 # fi # fi # } # doecho # # # Create a file ... /etc/fstab, /etc/inittab, /etc/lilo.conf # ------------- function CreateFile() { fil=$1 lin="$2" # echo "#" > $fil echo "$lin" >> $fil echo "#" >> $fil # } # createfile # # # # End of file