Update setup-alpine.sh
This commit is contained in:
parent
2a24f92494
commit
27508c8bfd
1 changed files with 8 additions and 8 deletions
|
@ -1,13 +1,13 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
wget "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-virt-3.21.3-x86_64.iso" alpine.iso
|
if [ wget "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-virt-3.21.3-x86_64.iso" alpine.iso ]; then
|
||||||
|
if [ -f /dev/sda ]; then
|
||||||
if [ -f /dev/sda && -f alpine.iso ]; then
|
dd if=alpine.iso of=/dev/sda
|
||||||
dd if=alpine.iso of=/dev/sda
|
elif [ -f /dev/vda ]; then
|
||||||
elif [ -f /dev/vda -f alpine.iso ]; then
|
dd if=alpine.iso of=/dev/vda
|
||||||
dd if=alpine.iso of=/dev/vda
|
else
|
||||||
else
|
exit 1
|
||||||
exit 1
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
reboot
|
reboot
|
Loading…
Add table
Reference in a new issue