aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-04-26 10:47:29 +0200
committerlonkaars <loek@pipeframe.xyz>2022-04-26 10:47:29 +0200
commit8db9589e6ca1757a5c5224fe5b913828d9ec0cb3 (patch)
treed513ba8ac7f42c8c1647a73bde13003ef2f91451
parent3bd87d454a05cda00ccfaa2fc76f8cd63ad0459c (diff)
added sdk install script
-rwxr-xr-xscripts/install-sdk.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/install-sdk.sh b/scripts/install-sdk.sh
new file mode 100755
index 0000000..56243c8
--- /dev/null
+++ b/scripts/install-sdk.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+bye () {
+ echo "run me as root!"
+ exit 1
+}
+
+[ $(id -g) -ne 0 ] && bye
+
+mkdir temp
+cd temp
+
+wget https://www.pololu.com/file/0J1058/libpololu-avr-151002.zip -O libpololu-avr.zip
+wget https://www.pololu.com/file/0J490/wixel-linux-110623-amd64.tar.gz -O wixel-linux.tar.gz
+
+unzip libpololu-avr.zip
+tar -xvzf wixel-linux.tar.gz
+
+rm libpololu-avr.zip wixel-linux.tar.gz
+
+cd libpololu-avr
+make install
+cd ..
+
+cd wixel_linux
+mv wixelconfig /usr/bin/wixelconfig
+mv wixelcmd /usr/bin/wixelcmd
+mv 99-pololu.rules /etc/udev/rules.d/99-pololu.rules
+cd ..
+
+cd ..
+rm -rf temp