|
|
|
@ -2,19 +2,20 @@
|
|
|
|
|
# Update the TUXEDO WebFAI usb stick
|
|
|
|
|
# the file actually moved to https://webfai.tuxedocomputers.com/webfai-current.img
|
|
|
|
|
# hence the -L switch on curl
|
|
|
|
|
# lastmod: 2024-09-08
|
|
|
|
|
|
|
|
|
|
if (test -f *.iso); then
|
|
|
|
|
DATE=$(date +%Y%m%d-%H%M%S)
|
|
|
|
|
FILENAME=$(ls -1 *.iso)
|
|
|
|
|
BASENAME=$(basename ${FILENAME} .iso)
|
|
|
|
|
BACKUPFILE=${BASENAME}.backup-$DATE.iso
|
|
|
|
|
DATE=$(date +%Y%m%d-%H%M%S)
|
|
|
|
|
FILENAME=$(ls -1 *.iso)
|
|
|
|
|
BASENAME=$(basename ${FILENAME} .iso)
|
|
|
|
|
BACKUPFILE=${BASENAME}.backup-$DATE.iso
|
|
|
|
|
|
|
|
|
|
# backup old image
|
|
|
|
|
echo -n "Compressing old image file witz xz..."
|
|
|
|
|
xz -c ${FILENAME} > ${BACKUPFILE}.xz
|
|
|
|
|
echo "done"
|
|
|
|
|
# backup old image
|
|
|
|
|
echo -n "Compressing old image file witz xz..."
|
|
|
|
|
xz -c ${FILENAME} > ${BACKUPFILE}.xz
|
|
|
|
|
echo "done"
|
|
|
|
|
else
|
|
|
|
|
echo "Found no iso file, no backup is made"
|
|
|
|
|
echo "Found no iso file, no backup is made"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo -n "Downloading image file with curl..."
|
|
|
|
|