update-webfai.sh
· 387 B · Bash
Raw
#!/usr/local/bin/zsh
#
# Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
DATE=$(date +%Y%d%m)
FILENAME=$(ls -1 *.iso)
BASENAME=$(basename ${FILENAME} .iso)
BACKUPFILE=${BASENAME}.backup-$DATE.iso
# backup old image
xz -c ${FILENAME} > ${BACKUPFILE}.xz
# download fresh image file
curl -O https://www.tuxedocomputers.com/webfai/webfai-nb/ipxe-stick-webfai-nb_current.iso
1 | #!/usr/local/bin/zsh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | |
5 | DATE=$(date +%Y%d%m) |
6 | FILENAME=$(ls -1 *.iso) |
7 | BASENAME=$(basename ${FILENAME} .iso) |
8 | BACKUPFILE=${BASENAME}.backup-$DATE.iso |
9 | |
10 | # backup old image |
11 | xz -c ${FILENAME} > ${BACKUPFILE}.xz |
12 | |
13 | # download fresh image file |
14 | curl -O https://www.tuxedocomputers.com/webfai/webfai-nb/ipxe-stick-webfai-nb_current.iso |