From 47d3c19dda929d5c2591b868c25f1c0c740087c5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 7 Oct 2017 14:14:43 +0200 Subject: Rename upload to upload-os --- upload | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 upload (limited to 'upload') diff --git a/upload b/upload deleted file mode 100755 index b573806..0000000 --- a/upload +++ /dev/null @@ -1,29 +0,0 @@ -#! /usr/bin/env bash - -# Upload the Build OS images to a TFTP server. -# -# If the tftp server host is not specified, then build@build-cache is -# assumed. The images are uploaded to /var/lib/tftpboot/buildos-devel/. -# -usage="usage: $0 [@]" - -owd="$(pwd)" -trap "{ cd '$owd'; exit 1; }" ERR -set -o errtrace # Trap in functions. - -function info () { echo "$*" 1>&2; } -function error () { info "$*"; exit 1; } - -if [ -z "$1" ]; then - host="build@build-cache" -else - host="$1" -fi - -# Use --delay-updates to make things a bit more atomic (we don't want to -# start rebooting before kernel/initrd are finished syncing). The cost -# is a bit more disk space used to temporarily hold copies. -# -rsync -v --progress -lpt -c --copy-unsafe-links --delay-updates \ - buildos-image buildos-initrd buildos-buildid \ - $host:/var/lib/tftpboot/buildos-devel/ -- cgit v1.1