Move install/* to .
[debian6500.git] / install / cluster / bin / create_bios_tarball.sh
diff --git a/install/cluster/bin/create_bios_tarball.sh b/install/cluster/bin/create_bios_tarball.sh
deleted file mode 100755 (executable)
index 0c4d84b..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/bash
-
-# ============================================================================
-# Copyright (C) THALES. All rights reserved
-# Author: Laurent Mazet
-# Date : 09/05/2014
-# ============================================================================
-
-# TODO
-# *
-
-PROGNAME=$(basename $0)
-BIOS=/opt/bios
-EXCLUDE=/tmp/$PROGNAME-exclude-$$
-TFTP=/opt/tftp
-TARBALL=$TFTP/bios.tgz
-TMPROOT=/tmp/$PROGNAME-root-$$
-TMPLOG=/tmp/$PROGNAME-$$.log
-VER=1.0
-
-# help function
-
-function usage () {
-    echo "usage: $PROGNAME [-h] [-v]"
-    echo "   -h: help message"
-    echo "   -v: version message"
-    exit $@
-}
-
-# formating functions
-
-function title () { echo -e "\033[0;1m$*\033[0;0m"; }
-function pass () { echo -e "\033[1;32m$*\033[0;0m"; }
-function warn () { echo -e "\033[1;33m$*\033[0;0m"; }
-function fail () { echo -e "\033[1;31m$*\033[0;0m"; }
-# check command
-
-function check () {
-    echo -n "$@: "
-    { eval $@; } >&$TMPLOG && pass OK || { fail KO; cat $TMPLOG; ERR=yes; }
-    rm -f $TMPLOG
-    test ! "$TEST" = yes
-}
-        
-# argument processing
-        
-while [ $# -gt 0 ]; do
-    case "$1" in
-    -h) usage 0;;
-    -v) echo "$PROGNAME: version $VER"; exit;;
-    *) echo "unknown argument ($1)"; exit 1;;
-    esac
-    shift
-done
-
-# create exclude list
-cat - <<EOF > $EXCLUDE
-*~
-*.bak
-.*.swp
-.#*
-EOF
-
-# create repository
-check mkdir $TMPROOT
-for f in $BIOS/*; do
-    check cp $f $TMPROOT
-done
-
-cat > $TMPROOT/+init <<EOF
-#!/bin/sh
-mydir=\$(dirname \$0)
-\$mydir/update_bios_cfg.sh -Y -y
-sleep 10
-reboot -f
-EOF
-chmod +x $TMPROOT/+init
-check test -x $TMPROOT/+init
-
-# create tarball
-_OLDPWD=$(pwd) 
-[ -f $TARBALL ] && check rm -f $TARBALL
-cd $TMPROOT
-check tar czf $TARBALL --exclude-from $EXCLUDE .
-cd $_OLDPWD
-
-# clean repository
-check rm -rf $TMPROOT
-
-# clean exclude list
-check rm -f $EXCLUDE
-exit 0