Add helpful extraction method

This commit is contained in:
Luke Childs 2019-12-14 08:54:11 +07:00
parent 151aa1f623
commit d0e67f0813

View file

@ -4,6 +4,8 @@ image_path="/data/filesystem.img"
zip_path="/filesystem.zip"
if [ ! -e $image_path ] && [ -e $zip_path ]; then
echo "No filesystem detected at ${image_path}!"
echo "Extracting..."
unzip $zip_path
mv *.img $image_path
fi