11 lines
308 B
Bash
11 lines
308 B
Bash
#!/usr/bin/env sh
|
|
|
|
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
|
|
dd if=alpine.iso of=/dev/sda && reboot
|
|
elif [ -f /dev/vda ]; then
|
|
dd if=alpine.iso of=/dev/vda && reboot
|
|
else
|
|
exit 1
|
|
fi
|
|
fi
|