Last active
July 27, 2020 16:31
-
-
Save caseyWebb/64325bc97f9e3970a2a7680ca9b0e80b to your computer and use it in GitHub Desktop.
C.H.I.P. Rescue Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This assumes a freshly flashed CHIP. See https://github.com/caseyWebb/Flash-CHIP if you haven't done that. | |
# setup networking | |
sudo nmtui | |
# disable wifi powersaving | |
sudo wget -O/etc/network/if-up.d/wlan_pwr http://fordsfords.github.io/wlan_pwr/wlan_pwr | |
sudo chmod +x /etc/network/if-up.d/wlan_pwr | |
# sync time | |
sudo timedatectl set-ntp true | |
# fix apt | |
wget http://security.debian.org/debian-security/pool/updates/main/a/apt/libapt-pkg4.12_1.0.9.8.6_armhf.deb | |
wget http://security.debian.org/debian-security/pool/updates/main/c/curl/libcurl3-gnutls_7.38.0-4+deb8u16_armhf.deb | |
wget http://security.debian.org/debian-security/pool/updates/main/a/apt/apt-transport-https_1.0.9.8.6_armhf.deb | |
sudo dpkg -i libapt-pkg4.12_1.0.9.8.6_armhf.deb | |
sudo dpkg -i libcurl3-gnutls_7.38.0-4+deb8u16_armhf.deb | |
sudo dpkg -i apt-transport-https_1.0.9.8.6_armhf.deb | |
rm libapt-pkg4.12_1.0.9.8.6_armhf.deb | |
rm libcurl3-gnutls_7.38.0-4+deb8u16_armhf.deb | |
rm apt-transport-https_1.0.9.8.6_armhf.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment