Skip to content

Instantly share code, notes, and snippets.

@raspberrypisig
Last active November 10, 2016 03:25
Show Gist options
  • Save raspberrypisig/118eef8d1854ac3bb2bd0b338a433171 to your computer and use it in GitHub Desktop.
Save raspberrypisig/118eef8d1854ac3bb2bd0b338a433171 to your computer and use it in GitHub Desktop.
#!/bin/bash
wget -O raspi-config.html -c "http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/?C=M;O=D"
filename=$(grep -n '<a href="raspi-config_' raspi-config.html|head -1 |sed -n 's/.*href="\([^"]*\).*/\1/p')
url="http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/$filename"
echo $url
wget -c $url
dpkg -i $filename
rm -rf raspi-config.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment