|
@@ -3,7 +3,7 @@ set -e
|
|
|
Version=1.0
|
|
|
##Configuration:##
|
|
|
RPI3=YES # YES/NO
|
|
|
-SERIAL=NO #YES for serial (attiny), NO for USB (teensy/arduino)
|
|
|
+SERIAL=YES #YES for serial (attiny), NO for USB (teensy/arduino)
|
|
|
|
|
|
echo -e "Serial Minecraft LedStatus installer $Version:"
|
|
|
echo
|
|
@@ -12,14 +12,13 @@ echo -e "Install dependencies, libraries and tools :"
|
|
|
if ! [ -x "$(command -v pip)" ]
|
|
|
then
|
|
|
sudo apt-get update
|
|
|
-sudo apt-get install python-pip -y
|
|
|
+sudo apt-get install python-pip python-serial -y
|
|
|
fi
|
|
|
|
|
|
if ! [ -x "$(command -v mcstatus)" ]
|
|
|
then
|
|
|
sudo pip install mcstatus
|
|
|
fi
|
|
|
-
|
|
|
echo -e "Done";
|
|
|
|
|
|
|
|
@@ -40,10 +39,9 @@ if ! grep "consoleblank=0" /boot/cmdline.txt >/dev/null
|
|
|
then
|
|
|
sudo bash -c 'sed -i -e "s/rootwait/rootwait consoleblank=0/g" /boot/cmdline.txt'
|
|
|
fi
|
|
|
-if ! grep "console=serial0,115200" /boot/cmdline.txt >/dev/null
|
|
|
+if grep "console=serial0,115200" /boot/cmdline.txt >/dev/null
|
|
|
then
|
|
|
-sudo bash -c 'sed -i -e "s/console=serial0,115200/console=serial0,115200/g" /boot/cmdline.txt'
|
|
|
+sudo bash -c 'sed -i -e "s/console=serial0,115200//g" /boot/cmdline.txt'
|
|
|
fi
|
|
|
echo "Done"
|
|
|
fi
|
|
|
-
|