summaryrefslogtreecommitdiff
path: root/nfs/autorun.sh
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2017-10-22 13:31:10 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2017-10-22 13:31:10 +0200
commit8142ffde3037976e152711f902ad9622aa1b7cba (patch)
tree1a113379f90812b13acc411bb1280e13b00a217a /nfs/autorun.sh
parentae649a17227f3ed2615f3d8eddc7ae19ccfaa45b (diff)
downloadeficast-8142ffde3037976e152711f902ad9622aa1b7cba.tar.gz
eficast-8142ffde3037976e152711f902ad9622aa1b7cba.tar.bz2
eficast-8142ffde3037976e152711f902ad9622aa1b7cba.zip
hours of polishing tmux, script sequences, hinting. ^C abort in tmux is broken.
Diffstat (limited to 'nfs/autorun.sh')
-rwxr-xr-xnfs/autorun.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/nfs/autorun.sh b/nfs/autorun.sh
deleted file mode 100755
index ad99a8e..0000000
--- a/nfs/autorun.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/busybox sh
-
-rest10() {
- # Let the user read machine_info and other usefull informations on console (or skip with Enter)
- sfx_question ; read -t10 -p 'Press Enter or wait 10 sec...'
- # Make some blank lines on console
- echo -e '\n\n\n\n\n'
-}
-
-# Define some handy variables
-imagedir=/mnt/nfs/images
-scriptdir=/mnt/nfs/scripts/
-hostname=$(hostname)
-
-# Load helper functions
-source $scriptdir/funcs.sh # Load some autorun.sh specific helper functions
-source /etc/rc.d/funcs # Reload init help functions
-
-# Check all prerequisites and exit if it fail
-hostname_test || exit 1
-firstdisk_test || exit 2
-
-# Run the main action script
-if nfswrite_test
-then # Start deploy script after letting a chance to cancel it
- rest10 ; source $scriptdir/image_deploy.sh
-
-else scriptavailability_test image_capture_${hostname}.sh || exit 3
- # Start capture script if all it needs is available
- rest10 ; source $scriptdir/image_capture.sh
-fi