Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- cp /etc/apt/sources.list /etc/apt/sources.list.org
- TMP=/tmp/Ubunt
- dialog --backtitle "CPU Selection" \
- --radiolist "Select CPU type:" 10 40 3 \
- 1 "Ubuntu 9.04" off \
- 2 "Ubuntu 10.04" off \
- 3 "Ubuntu 11.10" on 2> $TMP
- Ubuntu=$(cat $TMP)
- if [ $Ubuntu = 1 ]; then
- echo "## Ubuntu 9.04 ONLY!!
- deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted
- deb-src http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted
- deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted
- deb-src http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted
- deb http://old-releases.ubuntu.com/ubuntu/ jaunty universe
- deb-src http://old-releases.ubuntu.com/ubuntu/ jaunty universe
- deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates universe
- deb-src http://old-releases.ubuntu.com/ubuntu/ jaunty-updates universe
- deb http://old-releases.ubuntu.com/ubuntu/ jaunty multiverse
- deb-src http://old-releases.ubuntu.com/ubuntu/ jaunty multiverse
- deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates multiverse
- deb-src http://old-releases.ubuntu.com/ubuntu/ jaunty-updates multiverse
- deb http://old-releases.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
- deb http://old-releases.ubuntu.com/ubuntu jaunty-security main restricted
- deb-src http://old-releases.ubuntu.com/ubuntu jaunty-security main restricted
- deb http://old-releases.ubuntu.com/ubuntu jaunty-security universe
- deb-src http://old-releases.ubuntu.com/ubuntu jaunty-security universe
- deb http://old-releases.ubuntu.com/ubuntu jaunty-security multiverse
- deb http://old-releases.ubuntu.com/ubuntu/ jaunty-proposed restricted main multiverse universe
- deb-src http://old-releases.ubuntu.com/ubuntu jaunty-security multiverse " > /etc/apt/sources.list
- dialog --title "/etc/apt/sources.list" --textbox /etc/apt/sources.list 22 70
- elif [ $Ubuntu = 2 ]; then
- dialog --title 'Message' --msgbox "Ubuntu 10.04 is not available now! " 5 40
- elif [ $Ubuntu = 3 ]; then
- echo "## Ubuntu 11.10 ONLY!!
- deb http://archive.ubuntu.com/ubuntu oneiric main restricted
- deb-src http://archive.ubuntu.com/ubuntu oneiric main restricted
- deb http://archive.ubuntu.com/ubuntu oneiric-updates main restricted
- deb-src http://archive.ubuntu.com/ubuntu oneiric-updates main restricted
- deb http://archive.ubuntu.com/ubuntu oneiric universe
- deb-src http://archive.ubuntu.com/ubuntu oneiric universe
- deb http://archive.ubuntu.com/ubuntu oneiric-updates universe
- deb-src http://archive.ubuntu.com/ubuntu oneiric-updates universe
- deb http://archive.ubuntu.com/ubuntu oneiric multiverse
- deb-src http://archive.ubuntu.com/ubuntu oneiric multiverse
- deb http://archive.ubuntu.com/ubuntu oneiric-updates multiverse
- deb-src http://archive.ubuntu.com/ubuntu oneiric-updates multiverse
- deb http://archive.ubuntu.com/ubuntu oneiric-backports main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu oneiric-backports main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu oneiric-security main restricted
- deb-src http://archive.ubuntu.com/ubuntu oneiric-security main restricted
- deb http://archive.ubuntu.com/ubuntu oneiric-security universe
- deb-src http://archive.ubuntu.com/ubuntu oneiric-security universe
- deb http://archive.ubuntu.com/ubuntu oneiric-security multiverse
- deb-src http://archive.ubuntu.com/ubuntu oneiric-security multiverse
- deb http://archive.canonical.com/ubuntu oneiric partner
- deb-src http://archive.canonical.com/ubuntu oneiric partner
- deb http://extras.ubuntu.com/ubuntu oneiric main
- deb http://archive.ubuntu.com/ubuntu oneiric-proposed restricted main multiverse universe
- deb-src http://extras.ubuntu.com/ubuntu oneiric main" > /etc/apt/sources.list
- dialog --title "/etc/apt/sources.list" --textbox /etc/apt/sources.list 22 70
- fi
- rm $TMP
Advertisement
Add Comment
Please, Sign In to add comment