Created
January 19, 2016 10:18
-
-
Save flyte/465f5b60f1e985c2cfc0 to your computer and use it in GitHub Desktop.
Build the drivers for Atheros AR8161, install them, bring the interface up and get an IP address.
This file contains hidden or 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 | |
# ejp/imagination/20.12.2012: install-eth-drivers.sh | |
# Build the ethernet drivers for Atheros AR8161, | |
# install them, bring the interface up and get | |
# an IP address. | |
set -e | |
# Get the password before the user gets a cup of tea | |
sudo echo "" | |
cd /home/user/compat-wireless-2012-03-12-p | |
# Clean up any existing builds | |
make clean | |
./scripts/driver-select alx | |
# Build it | |
make -j 4 | |
# Install it | |
sudo make install | |
sudo ./scripts/alx-enable atl1c | |
sudo ./scripts/alx-enable alx | |
# Activate it | |
sudo modprobe alx | |
# Bring the interface up | |
sudo ifconfig eth0 up | |
# Get an IP | |
sudo dhclient eth0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment