matt@matt-desktop:~/Desktop/nitdroid$ #! /bin/bash matt@matt-desktop:~/Desktop/nitdroid$ #this is a script to completely install NITdroid on an internet tablet matt@matt-desktop:~/Desktop/nitdroid$ echo Welcome to the NITdroid downloader/installer script. Welcome to the NITdroid downloader/installer script. matt@matt-desktop:~/Desktop/nitdroid$ echo This program will do all of the following: This program will do all of the following: matt@matt-desktop:~/Desktop/nitdroid$ echo *Download the nescessary files. *Download the nescessary files. matt@matt-desktop:~/Desktop/nitdroid$ echo *Create the proper filesystems and partitions. *Create the proper filesystems and partitions. matt@matt-desktop:~/Desktop/nitdroid$ echo *Install the rootfs and flash the proper kernel. *Install the rootfs and flash the proper kernel. matt@matt-desktop:~/Desktop/nitdroid$ echo Before beginning, please remove the external SD card and plug the USB cable into the computer. Before beginning, please remove the external SD card and plug the USB cable into the computer. matt@matt-desktop:~/Desktop/nitdroid$ echo Downloads will begin in 30 seconds...Downloads will begin in 30 seconds... matt@matt-desktop:~/Desktop/nitdroid$ echo NOTE: This program should NOT be run as root. NOTE: This program should NOT be run as root. matt@matt-desktop:~/Desktop/nitdroid$ echo It has specific parts that need to run as root. It has specific parts that need to run as root. matt@matt-desktop:~/Desktop/nitdroid$ sleep 30 matt@matt-desktop:~/Desktop/nitdroid$ #beginning of downloader script matt@matt-desktop:~/Desktop/nitdroid$ cd /home/$USER/Desktop/ matt@matt-desktop:~/Desktop$ mkdir nitdroid mkdir: cannot create directory `nitdroid': File exists matt@matt-desktop:~/Desktop$ mkdir adb mkdir: cannot create directory `adb': File exists matt@matt-desktop:~/Desktop$ cd nitdroid matt@matt-desktop:~/Desktop/nitdroid$ echo Beginning downloads... Beginning downloads... matt@matt-desktop:~/Desktop/nitdroid$ wget http://www.jakemaheu.com/flasher-3.0-static --2009-01-12 20:39:18-- http://www.jakemaheu.com/flasher-3.0-static Resolving www.jakemaheu.com... 67.18.18.74 Connecting to www.jakemaheu.com|67.18.18.74|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 492816 (481K) [text/plain] Saving to: `flasher-3.0-static.4' 100%[======================================>] 492,816 48.0K/s in 9.0s 2009-01-12 20:39:28 (53.7 KB/s) - `flasher-3.0-static.4' saved [492816/492816] matt@matt-desktop:~/Desktop/nitdroid$ wget http://guug.org/nit/nitdroid/rootfs-nitdroid.tar.bz2 --2009-01-12 20:39:28-- http://guug.org/nit/nitdroid/rootfs-nitdroid.tar.bz2 Resolving guug.org... 200.9.255.30 Connecting to guug.org|200.9.255.30|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 34106260 (33M) [application/octet-stream] Saving to: `rootfs-nitdroid.tar.bz2.5' 100%[======================================>] 34,106,260 43.3K/s in 11m 55s 2009-01-12 20:51:24 (46.6 KB/s) - `rootfs-nitdroid.tar.bz2.5' saved [34106260/34106260] matt@matt-desktop:~/Desktop/nitdroid$ wget http://guug.org/nit/nitdroid/zImage-nitdroid-n8x0 --2009-01-12 20:51:24-- http://guug.org/nit/nitdroid/zImage-nitdroid-n8x0 Resolving guug.org... 200.9.255.30 Connecting to guug.org|200.9.255.30|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1752836 (1.7M) [application/octet-stream] Saving to: `zImage-nitdroid-n8x0.5' 100%[======================================>] 1,752,836 36.7K/s in 52s 2009-01-12 20:52:16 (32.9 KB/s) - `zImage-nitdroid-n8x0.5' saved [1752836/1752836] matt@matt-desktop:~/Desktop/nitdroid$ cd ../adb matt@matt-desktop:~/Desktop/adb$ wget http://guug.org/nit/nitdroid/adb.bz2 --2009-01-12 20:52:16-- http://guug.org/nit/nitdroid/adb.bz2 Resolving guug.org... 200.9.255.30 Connecting to guug.org|200.9.255.30|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 61068 (60K) [application/octet-stream] Saving to: `adb.bz2.3' 100%[======================================>] 61,068 59.3K/s in 1.0s 2009-01-12 20:52:18 (59.3 KB/s) - `adb.bz2.3' saved [61068/61068] matt@matt-desktop:~/Desktop/adb$ wget http://guug.org/nit/nitdroid/Internal_keypad.kl --2009-01-12 20:52:18-- http://guug.org/nit/nitdroid/Internal_keypad.kl Resolving guug.org... 200.9.255.30 Connecting to guug.org|200.9.255.30|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 409 [application/octet-stream] Saving to: `Internal_keypad.kl.4' 100%[======================================>] 409 --.-K/s in 0s 2009-01-12 20:52:18 (33.2 MB/s) - `Internal_keypad.kl.4' saved [409/409] matt@matt-desktop:~/Desktop/adb$ bunzip2 adb.bz2 bunzip2: Output file adb already exists. matt@matt-desktop:~/Desktop/adb$ chmod a+x adb matt@matt-desktop:~/Desktop/adb$ cd ../nitdroid matt@matt-desktop:~/Desktop/nitdroid$ #beginning of partitioning matt@matt-desktop:~/Desktop/nitdroid$ echo Files acquired. Files acquired. matt@matt-desktop:~/Desktop/nitdroid$ echo Creating filesystems... Creating filesystems... matt@matt-desktop:~/Desktop/nitdroid$ echo [************************************************** ************] [************************************************** ************] matt@matt-desktop:~/Desktop/nitdroid$ mount|grep -e /dev/sd /dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro) /dev/sdf1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1 000,utf8,umask=077,flush) matt@matt-desktop:~/Desktop/nitdroid$ echo What is the last entry on that list? What is the last entry on that list? matt@matt-desktop:~/Desktop/nitdroid$ echo It should look like '/dev/sd*1'. It should look like /dev/sd*1. matt@matt-desktop:~/Desktop/nitdroid$ echo Enter the answer in lowercase, with the number included. Enter the answer in lowercase, with the number included. matt@matt-desktop:~/Desktop/nitdroid$ echo [************************************************** ************] [************************************************** ************] matt@matt-desktop:~/Desktop/nitdroid$ read action1 $action1 matt@matt-desktop:~/Desktop/nitdroid$ .