Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # N900 PwnPhone V3 Installation Script 2012 (Script 4/4)
- foo=`whoami`
- if [[ $foo != "root" ]];then
- echo "YOU MUST BE ROOT TO EXECUTE THIS SCRIPT"
- sleep 1
- exit
- fi
- echo "Beginning step 4"
- ## Prevent known updates that break things
- echo pymaemo-optify hold | dpkg --set-selections
- echo libapr1 hold | dpkg --set-selections
- echo libaprutil1 hold | dpkg --set-selections
- echo nmap hold | dpkg --set-selections
- echo subversion hold | dpkg --set-selections
- echo backupmenu hold | dpkg --set-selections
- echo ettercap hold | dpkg --set-selections
- echo ettercap-common hold | dpkg --set-selections
- echo bootmenu hold | dpkg --set-selections
- echo i2c-tools hold | dpkg --set-selections
- echo libacl1 hold | dpkg --set-selections
- echo libattr1 hold | dpkg --set-selections
- echo liblzo2-2 hold | dpkg --set-selections
- echo mtd-utils hold | dpkg --set-selections
- echo openssh-client hold | dpkg --set-selections
- echo openssh-common hold | dpkg --set-selections
- echo openssh-server hold | dpkg --set-selections
- echo openssh-tar-gnu hold | dpkg --set-selections
- echo busybox-power hold | dpkg --set-selections
- echo hildon-initscripts hold | dpkg --set-selections
- echo kernel-power hold | dpkg --set-selections
- echo kernel-power-flasher hold | dpkg --set-selections
- echo kernel-power-headers hold | dpkg --set-selections
- echo kernel-power-modules hold | dpkg --set-selections
- echo libstdc++6 hold | dpkg --set-selections
- echo ssh-status hold | dpkg --set-selections
- ## Fix wireshark icon issues
- mv /opt/maemo/usr/share/pixmaps/wireshark.png /opt/usr/share/pixmaps
- mv /opt/maemo/usr/share/applications/hildon/wireshark.desktop /usr/share/applications/hildon
- ## Fix .bashrc
- echo "#" > /home/user/.bashrc
- ## Fix x11vnc
- echo "[Desktop Entry]
- Encoding=UTF-8
- Version=0.93
- Type=Application
- Name=x11vnc
- Exec=osso-xterm -e /usr/bin/x11vnc
- Icon=x11vnc
- X-Window-Icon=x11vnc
- X-Window-Icon-Dimmed=x11vnc" > /usr/share/applications/hildon/x11vnc.desktop
- ## Add configitnow.com GPG key for apt purposes
- apt-key add /media/mmc1/pwnimage/sys_files/cinss.pub
- ## Create the finalized PwnPhone Environment
- gconftool-2 --load /media/mmc1/pwnimage/sys_files/gconf-settings.xml
- clear
- echo "Script 4 is complete"
- echo ""
- echo "To continue, press enter and then CLOSE keyboard"
- echo "System will reboot"
- read x
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement