mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-03-01 00:59:23 +01:00
check internet & clean
This commit is contained in:
parent
4325658924
commit
6558fb41f1
1 changed files with 7 additions and 0 deletions
|
@ -17,6 +17,12 @@ if [ "$EUID" -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check if internet is available
|
||||||
|
if ping -c 1 "1.1.1.1" &> /dev/null; then
|
||||||
|
echo "error='script needs internet connection to run'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# usage info
|
# usage info
|
||||||
echo "packer.sh [BRANCH] [arm|x86] [min|fat] [?lastcommithash]"
|
echo "packer.sh [BRANCH] [arm|x86] [min|fat] [?lastcommithash]"
|
||||||
echo "Build RaspiBlitz install images on a Debian LIVE system"
|
echo "Build RaspiBlitz install images on a Debian LIVE system"
|
||||||
|
@ -224,6 +230,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
echo "# clean up"
|
echo "# clean up"
|
||||||
|
cd ..
|
||||||
rm -rf raspiblitz 2>/dev/null
|
rm -rf raspiblitz 2>/dev/null
|
||||||
|
|
||||||
echo "# SIGN & SECURE IMAGE ###########################################"
|
echo "# SIGN & SECURE IMAGE ###########################################"
|
||||||
|
|
Loading…
Add table
Reference in a new issue