Created
September 24, 2015 05:10
-
-
Save Leask/40c76c58765910f74aea to your computer and use it in GitHub Desktop.
Linuxium's installation script for upgrading Ubuntu with Canonical's Z3735F customizations
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/sh | |
# Linuxium's installation script for upgrading Ubuntu with Canonical's Z3735F customizations | |
if [ -d /target ]; then | |
echo "$0: Do not run this script from a LiveCD ... exiting." | |
exit | |
fi | |
DEFAULT_GATEWAY=`ip r | grep default | cut -d ' ' -f 3` | |
if ( ! ping -q -w 1 -c 1 "${DEFAULT_GATEWAY}" > /dev/null 2>&1 ); then | |
echo "$0: Not connected to internet ... exiting." | |
exit | |
fi | |
cat <<+ > /etc/apt/sources.list | |
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse | |
deb http://extras.ubuntu.com/ubuntu trusty main | |
deb-src http://extras.ubuntu.com/ubuntu trusty main | |
+ | |
apt-get update | |
apt-get -y install dkms | |
cat <<+ > /etc/apt/sources.list.d/chestersmill.list | |
deb http://oem.archive.canonical.com/updates/ trusty-chestersmill public | |
deb-src http://oem.archive.canonical.com/updates/ trusty-chestersmill public | |
+ | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9FDA6BED73CDC22 | |
apt-get update | |
apt-get -y install chestersmill-settings | |
echo "$0: Now 'reboot' device." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment