forked from bocon13/mptcp_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_mptcp_quantal.sh
executable file
·39 lines (31 loc) · 1.46 KB
/
install_mptcp_quantal.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Script to install MPTCP kernel from the MPTCP apt-get repo
# Instructions from http://mptcp.info.ucl.ac.be/pmwiki.php?n=Users.AptRepository
# Get key
wget -q -O - http://mptcp.info.ucl.ac.be/mptcp.gpg.key | sudo apt-key add -
# Add repo
sudo sh -c 'echo "deb http://mptcp.info.ucl.ac.be/repos/apt/debian quantal main" > /etc/apt/sources.list.d/mptcp.list'
# Update:
sudo apt-get update
# Install appropriate kernel version; -virtual for EC2.
linux_kernel=linux-mptcp
echo "installing linux kernel: $linux_kernel"
sudo apt-get install $linux_kernel
echo "If *-mptcp is not the first entry, change the default param in /boot/grub/menu.lst to match it (probably 2 or 4, but not odd - those are rescue kernels)."
grep ^default /boot/grub/menu.lst
echo ""
echo "Check to make sure the following entry is in: /boot/grub/menu.lst"
echo "If it is not there, add it to the list and verify 'default'"
echo ""
#title Ubuntu 12.10, kernel 3.5.0-21-mptcp
echo "title Ubuntu 12.10, kernel `ls /boot/ | grep -o -m 1 3.5.*mptcp`"
echo "root (hd0)"
#kernel `ls /boot/vmlinux*mptcp`/boot/vmlinuz-3.5.0-24-mptcp root=LABEL=cloudimg-rootfs ro console=hvc0
echo "kernel `ls /boot/vmlinuz*mptcp` root=LABEL=cloudimg-rootfs ro console=hvc0"
#initrd /boot/initrd.img-3.5.0-24-mptcp
echo "initrd `ls /boot/initrd*mptcp`"
echo ""
echo "Then, reboot to enjoy a fresh MPTCP kernel, with 'sudo reboot'."
echo "Once rebooted, verify the kernel version with 'uname -a'."
echo "Enjoy!"
#sudo reboot