Set PRINT_MODE:TEXT

develop
lethosor 2018-02-03 23:56:44 -05:00
parent b54a35ce5d
commit 78c60e249e
1 changed files with 15 additions and 4 deletions

@ -2,15 +2,23 @@
tardest="df.tar.bz2" tardest="df.tar.bz2"
which md5sum && alias md5=md5sum
selfmd5=$(openssl md5 < "$0")
echo $selfmd5
cd "$(dirname "$0")" cd "$(dirname "$0")"
echo "DF_VERSION: $DF_VERSION" echo "DF_VERSION: $DF_VERSION"
echo "DF_FOLDER: $DF_FOLDER" echo "DF_FOLDER: $DF_FOLDER"
mkdir -p "$DF_FOLDER" mkdir -p "$DF_FOLDER"
cd "$DF_FOLDER" cd "$DF_FOLDER"
if [ -f receipt ]; then if [[ -f receipt ]]; then
if [[ "$selfmd5" != "$(cat receipt)" ]]; then
echo "download-df.sh changed; removing DF"
else
echo "Already downloaded $DF_VERSION" echo "Already downloaded $DF_VERSION"
exit 0 exit 0
fi
fi fi
rm -rif "$tardest" df_linux rm -rif "$tardest" df_linux
@ -23,6 +31,9 @@ echo Downloading
wget "$url" -O "$tardest" wget "$url" -O "$tardest"
echo Extracting echo Extracting
tar xf "$tardest" --strip-components=1 tar xf "$tardest" --strip-components=1
echo Changing settings
echo '' >> "$DF_FOLDER/data/init/init.txt"
echo '[PRINT_MODE:TEXT]' >> "$DF_FOLDER/data/init/init.txt"
echo Done echo Done
touch receipt echo "$selfmd5" > receipt