Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added new way to autoput to logfile

  • Loading branch information...
commit b5e5125b1f25a2d0f5cfe5ece38613f9e414d541 1 parent 53b7cb0
@DungFu authored
View
2  lib/app/alias_modder.sh
@@ -1,6 +1,6 @@
# alias_modder.sh
# Kevin's crap
-source $1/lib/app/helper.sh $1
+source $1/lib/app/helper.sh $1 $2
echo_separator_bar
echo "Modify your aliases here!"
View
2  lib/app/dotcloner.sh
@@ -1,5 +1,5 @@
# globs through the dotfile directory for available dotfiles to clone
-source $1/lib/app/helper.sh $1
+source $1/lib/app/helper.sh $1 $2
MINOR_DIRECTORY=$ROOT/config/dotfiles
# $1 is the type of dotfile
View
3  lib/app/helper.sh
@@ -4,6 +4,7 @@
# This is kind of important because ROOT will be set in all scripts the source helper.sh
ROOT=$1
+logfile=$2
sed_escape() {
echo $1| sed -e 's/\(\.\|\/\|\*\|\[\|\]\|\\\)/\\&/g'
@@ -58,7 +59,7 @@ echo_separator_bar() {
run_script() {
selection=$1
- source $MINOR_DIRECTORY/$selection $ROOT
+ source $MINOR_DIRECTORY/$selection $ROOT $logfile
}
determine_OS() {
View
2  lib/app/installer.sh
@@ -1,4 +1,4 @@
-source $1/lib/app/helper.sh $1
+source $1/lib/app/helper.sh $1 $2
MINOR_DIRECTORY=$ROOT/lib/installs
echo_separator_bar
View
2  lib/app/mac_installer.sh
@@ -1,4 +1,4 @@
-source $1/lib/app/helper.sh $1
+source $1/lib/app/helper.sh $1 $2
MINOR_DIRECTORY=$ROOT/lib/macinstalls
echo_separator_bar
View
4 lib/app/mac_post_install.sh
@@ -1,7 +1,7 @@
# Super cool Macintosh Post_Install script
# Going to be modeled after the Ubuntu version...hopefully everything survives!
-source $1/lib/app/helper.sh $1
+source $1/lib/app/helper.sh $1 $2
MINOR_DIRECTORY=$ROOT/lib/macinstalls
HAVEHOMEBREW=""
HAVEWGET=""
@@ -9,7 +9,7 @@ HAVEAPP=""
run_app() {
app=$1
- bash $ROOT/lib/app/$app $ROOT
+ bash $ROOT/lib/app/$app $ROOT $logfile
}
echo_separator_bar
View
2  lib/app/simple.sh
@@ -1,4 +1,4 @@
-source $1/lib/app/helper.sh $1
+source $1/lib/app/helper.sh $1 $2
MINOR_DIRECTORY=$ROOT/lib/simple
echo_separator_bar
View
2  lib/app/tooler.sh
@@ -1,4 +1,4 @@
-source $1/lib/app/helper.sh $1
+source $1/lib/app/helper.sh $1 $2
MINOR_DIRECTORY=$ROOT/lib/tools
echo_separator_bar
View
30 lib/installs/autojump.sh
@@ -1,33 +1,31 @@
#!/bin/bash
# Install autojump
-logfile=/dev/null
-
echo "Installing Dependencies..."
-sudo apt-get -qqy install python2.7 &> $logfile
+sudo apt-get -qqy install python2.7 >> $logfile
-wget https://github.com/joelthelion/autojump/downloads -O ~/Downloads/autojump-downloads.html &> $logfile
-VALLSTABLE=`egrep -o -m 1 "\/downloads\/joelthelion\/autojump\/autojump_v[0-9]*\.tar\.gz" ~/Downloads/autojump-downloads.html` &> $logfile
+wget https://github.com/joelthelion/autojump/downloads -O ~/Downloads/autojump-downloads.html >> $logfile
+VALLSTABLE=`egrep -o -m 1 "\/downloads\/joelthelion\/autojump\/autojump_v[0-9]*\.tar\.gz" ~/Downloads/autojump-downloads.html` >> $logfile
echo "https://github.com${VALLSTABLE}"
-VER2=`echo "${VALLSTABLE}"|cut -d "." -f 1` &> $logfile
-VER=`echo "${VER2}"|cut -d "_" -f 2` &> $logfile
+VER2=`echo "${VALLSTABLE}"|cut -d "." -f 1` >> $logfile
+VER=`echo "${VER2}"|cut -d "_" -f 2` >> $logfile
rm ~/Downloads/autojump-downloads.html
-wget https://github.com${VALLSTABLE} -O ~/Downloads/autojump-download.tar.gz &> $logfile
-mkdir ~/autojump/ &> $logfile
-tar -xvzf ~/Downloads/autojump-download.tar.gz -C ~/autojump/ &> $logfile
-rm ~/Downloads/autojump-download.tar.gz &> $logfile
+wget https://github.com${VALLSTABLE} -O ~/Downloads/autojump-download.tar.gz >> $logfile
+mkdir ~/autojump/ >> $logfile
+tar -xvzf ~/Downloads/autojump-download.tar.gz -C ~/autojump/ >> $logfile
+rm ~/Downloads/autojump-download.tar.gz >> $logfile
-cd ~/autojump/autojump_${VER}/ &> $logfile
-sudo ./install.sh &> $logfile
-cd ~ &> $logfile
-rm -rf ~/autojump/ &> $logfile
+cd ~/autojump/autojump_${VER}/ >> $logfile
+sudo ./install.sh >> $logfile
+cd ~ >> $logfile
+rm -rf ~/autojump/ >> $logfile
if grep -Fxq "source /etc/profile" ~/.bashrc
then
echo "\"source /etc/profile\" already in ~\/.bashrc!"
else
- echo "source /etc/profile" >> ~/.bashrc &> $logfile
+ echo "source /etc/profile" >> ~/.bashrc >> $logfile
fi
View
14 lib/installs/bitbucket.sh
@@ -1,18 +1,16 @@
#!/bin/bash
## install mercurial and configure
-logfile=/dev/null
-
echo "Adding Repository..."
-sudo apt-add-repository -y ppa:mercurial-ppa/releases &> $logfile
-sudo apt-get -qq update &> $logfile
+sudo apt-add-repository -y ppa:mercurial-ppa/releases >> $logfile
+sudo apt-get -qq update >> $logfile
-sudo apt-get -qqy install mercurial xclip &> $logfile
+sudo apt-get -qqy install mercurial xclip >> $logfile
read -p "Bitbucket User Name: " USERNAME
read -p "Bitbucket Email : " EMAIL
-echo -e "[ui]\nusername = ${USERNAME} <${EMAIL}>" | sudo tee ~/.hgrc &> $logfile
+echo -e "[ui]\nusername = ${USERNAME} <${EMAIL}>" | sudo tee ~/.hgrc >> $logfile
if [ -e ~/.ssh/*.pub ]
then
@@ -22,8 +20,8 @@ else
$ROOT/lib/tools/generate_ssh_key.sh
fi
-newest_ssh_pub=`find ~ -type f -wholename $(ls -t ~/.ssh/*.pub | head -1)` &> $logfile
-xclip -in -selection c ${newest_ssh_pub} &> $logfile
+newest_ssh_pub=`find ~ -type f -wholename $(ls -t ~/.ssh/*.pub | head -1)` >> $logfile
+xclip -in -selection c ${newest_ssh_pub} >> $logfile
echo "Proceed to https://bitbucket.org/account/ssh-keys/ and add your ssh key to your account."
echo "This is your ssh key, and it is now in your clipboard"
View
3  lib/installs/fu.sh
@@ -1,4 +1,3 @@
-<<<<<<< HEAD
#!/bin/bash
# Install fu
@@ -8,8 +7,6 @@
# CommandlineFu.com is an awesome website written by David Winterbottom
# It has a collection of neat commandline one liners for the unix shell
-logfile=/dev/null
-
echo "Installing Dependencies..."
sudo apt-get -qqy install python2.7 make &> $logfile
View
18 lib/installs/github.sh
@@ -1,21 +1,19 @@
#!/bin/bash
## install git and configure
-logfile=/dev/null
-
echo "Adding Repository..."
-sudo apt-add-repository -y ppa:git-core/ppa &> $logfile
-sudo apt-get -qq update &> $logfile
+sudo apt-add-repository -y ppa:git-core/ppa >> $logfile
+sudo apt-get -qq update >> $logfile
-git config color.ui true &> $logfile
+git config color.ui true >> $logfile
-sudo apt-get -qqy install git xclip &> $logfile
+sudo apt-get -qqy install git xclip >> $logfile
read -p "Github User Name: " USERNAME
read -p "Github Email : " EMAIL
-git config --global user.name $USERNAME &> $logfile
-git config --global user.email $EMAIL &> $logfile
+git config --global user.name $USERNAME >> $logfile
+git config --global user.email $EMAIL >> $logfile
if [ -e ~/.ssh/*.pub ]
then
@@ -25,8 +23,8 @@ else
$ROOT/lib/tools/generate_ssh_key.sh
fi
-newest_ssh_pub=`find ~ -type f -wholename $(ls -t ~/.ssh/*.pub | head -1)` &> $logfile
-xclip -in -selection c ${newest_ssh_pub} &> $logfile
+newest_ssh_pub=`find ~ -type f -wholename $(ls -t ~/.ssh/*.pub | head -1)` >> $logfile
+xclip -in -selection c ${newest_ssh_pub} >> $logfile
echo "Proceed to https://github.com/account/ssh and add your ssh key to your account."
echo "This is your ssh key, and it is now in your clipboard"
View
10 lib/installs/google_chrome.sh
@@ -1,8 +1,6 @@
#!/bin/bash
# Install google chrome
-logfile=/dev/null
-
determine_bitage
VER=$RETURN
@@ -27,9 +25,9 @@ while true; do
done
echo "Installing Dependencies..."
-sudo apt-get -qqy install libxss1 &> $logfile
+sudo apt-get -qqy install libxss1 >> $logfile
echo "Downloading Google Chrome..."
-wget http://dl.google.com/linux/direct/google-chrome-${VC}_current_${VER}.deb -O ~/Downloads/google-chrome-${VC}_current_${VER}.deb &> $logfile
+wget http://dl.google.com/linux/direct/google-chrome-${VC}_current_${VER}.deb -O ~/Downloads/google-chrome-${VC}_current_${VER}.deb >> $logfile
echo "Installing Google Chrome..."
-sudo dpkg -i ~/Downloads/google-chrome-${VC}_current_${VER}.deb &> $logfile
-rm ~/Downloads/google-chrome-${VC}_current_${VER}.deb &> $logfile
+sudo dpkg -i ~/Downloads/google-chrome-${VC}_current_${VER}.deb >> $logfile
+rm ~/Downloads/google-chrome-${VC}_current_${VER}.deb >> $logfile
View
10 lib/installs/java7.sh
@@ -1,11 +1,9 @@
#!/bin/bash
## install Java 7
-logfile=/dev/null
-
echo "Adding Repository..."
-sudo add-apt-repository -y ppa:webupd8team/java &> $logfile
-sudo apt-get -qq update &> $logfile
-sudo mkdir -p /usr/lib/mozilla/plugins &> $logfile
+sudo add-apt-repository -y ppa:webupd8team/java >> $logfile
+sudo apt-get -qq update >> $logfile
+sudo mkdir -p /usr/lib/mozilla/plugins >> $logfile
echo "Downloading and Installing Java 7..."
-sudo apt-get -qqy install oracle-jdk7-installer &> $logfile
+sudo apt-get -qqy install oracle-jdk7-installer >> $logfile
View
16 lib/installs/minecraft.sh
@@ -1,14 +1,12 @@
#!/bin/bash
# Downloads and Installs Minecraft with an Entry in the Games applications folder
-logfile=/dev/null
-
-sudo rm -rf /usr/local/bin/minecraft &> $logfile
-sudo mkdir /usr/local/bin/minecraft/ &> $logfile
+sudo rm -rf /usr/local/bin/minecraft >> $logfile
+sudo mkdir /usr/local/bin/minecraft/ >> $logfile
echo "Downloading Minecraft..."
-sudo wget -q https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar -O /usr/local/bin/minecraft/minecraft.jar &> $logfile
+sudo wget -q https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar -O /usr/local/bin/minecraft/minecraft.jar >> $logfile
echo "Installing Minecraft Unity Shortcut..."
-wget -q http://www.minecraft.net/favicon.png -O ~/Downloads/favicon.png &> $logfile
-sudo cp ~/Downloads/favicon.png /usr/local/bin/minecraft/ &> $logfile
-rm ~/Downloads/favicon.png &> $logfile
-echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Minecraft\nComment=Minecraft is a game about placing blocks to build anything you can imagine.\nExec=java -Xmx1024M -Xms512M -cp /usr/local/bin/minecraft/minecraft.jar net.minecraft.LauncherFrame\nIcon=/usr/local/bin/minecraft/favicon.png\nTerminal=false\nType=Application\nCategories=Games;" | sudo tee /usr/share/applications/minecraft.desktop &> $logfile
+wget -q http://www.minecraft.net/favicon.png -O ~/Downloads/favicon.png >> $logfile
+sudo cp ~/Downloads/favicon.png /usr/local/bin/minecraft/ >> $logfile
+rm ~/Downloads/favicon.png >> $logfile
+echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Minecraft\nComment=Minecraft is a game about placing blocks to build anything you can imagine.\nExec=java -Xmx1024M -Xms512M -cp /usr/local/bin/minecraft/minecraft.jar net.minecraft.LauncherFrame\nIcon=/usr/local/bin/minecraft/favicon.png\nTerminal=false\nType=Application\nCategories=Games;" | sudo tee /usr/share/applications/minecraft.desktop >> $logfile
View
32 lib/installs/node.sh
@@ -2,8 +2,6 @@
# http://nodejs.org/
# Installs Node.js
-logfile=/dev/null
-
read -p "Currently Executing as User: \"${USER}\". Is this correct (y/n)? " CONFIRM
echo ""
@@ -11,16 +9,16 @@ if [ "$CONFIRM" = n ]; then
echo "Quiting..."
else
echo "Install Dependencies..."
- sudo apt-get -qqy install g++ curl libssl-dev apache2-utils cmake curl &> $logfile
+ sudo apt-get -qqy install g++ curl libssl-dev apache2-utils cmake curl >> $logfile
- wget http://nodejs.org/#download -O ~/Downloads/node-index.html &> $logfile
- VALLSTABLE=`egrep -o "<p class=\"version\">.*<\/p>" ~/Downloads/node-index.html` &> $logfile
+ wget http://nodejs.org/#download -O ~/Downloads/node-index.html >> $logfile
+ VALLSTABLE=`egrep -o "<p class=\"version\">.*<\/p>" ~/Downloads/node-index.html` >> $logfile
## Version Numbers of Node.js
- VSTABLE=`echo "${VALLSTABLE}"|cut -d ">" -f 2` &> $logfile
- VSTABLE=`echo "${VSTABLE}"|cut -d "<" -f 1` &> $logfile
+ VSTABLE=`echo "${VALLSTABLE}"|cut -d ">" -f 2` >> $logfile
+ VSTABLE=`echo "${VSTABLE}"|cut -d "<" -f 1` >> $logfile
- rm ~/Downloads/node-index.html &> $logfile
+ rm ~/Downloads/node-index.html >> $logfile
VINSTALL=""
VVER=""
@@ -31,20 +29,20 @@ else
$ROOT/lib/tools/usr_local_permissions.sh
echo "Installing Node.js..."
- wget http://nodejs.org/dist/${VVER}/${VINSTALL}.tar.gz -O ~/Downloads/node-${VVER}.tar.gz &> $logfile
- mkdir ~/Node/ &> $logfile
- tar -xvzf ~/Downloads/node-${VVER}.tar.gz -C ~/Node/ &> $logfile
+ wget http://nodejs.org/dist/${VVER}/${VINSTALL}.tar.gz -O ~/Downloads/node-${VVER}.tar.gz >> $logfile
+ mkdir ~/Node/ >> $logfile
+ tar -xvzf ~/Downloads/node-${VVER}.tar.gz -C ~/Node/ >> $logfile
rm ~/Downloads/node-${VVER}.tar.gz
- cd ~/Node/node-${VVER}/ &> $logfile
- ./configure &> $logfile
- make &> $logfile
- make install &> $logfile
+ cd ~/Node/node-${VVER}/ >> $logfile
+ ./configure >> $logfile
+ make >> $logfile
+ make install >> $logfile
cd ~
rm -rf ~/Node/
echo "Installing npm..."
- curl http://npmjs.org/install.sh &> ~$logfile | clean=yes sh
+ curl http://npmjs.org/install.sh >> ~$logfile | clean=yes sh
fi
-rm $logfile &> /dev/null
+rm $logfile >> $ROOT/logfile.txt
View
2  lib/installs/rvm.sh
@@ -6,7 +6,7 @@
#
-sudo apt-get install curl git &> /dev/null
+sudo apt-get install curl git >> $logfile
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
View
12 lib/installs/spotify.sh
@@ -1,12 +1,10 @@
#!/bin/bash
# Install spotify
-logfile=/dev/null
-
echo "Installing Repository..."
-sudo apt-add-repository -y "deb http://repository.spotify.com stable non-free" &> $logfile
-sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E &> $logfile
-sudo apt-get -qq update &> $logfile
-mkdir -p ~/.cache/indicators/sound/album-art-cache &> $logfile
+sudo apt-add-repository -y "deb http://repository.spotify.com stable non-free" >> $logfile
+sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E >> $logfile
+sudo apt-get -qq update >> $logfile
+mkdir -p ~/.cache/indicators/sound/album-art-cache >> $logfile
echo "Installing Spotify..."
-sudo apt-get -qqy install spotify-client-qt &> $logfile
+sudo apt-get -qqy install spotify-client-qt >> $logfile
View
16 lib/installs/sublime.sh
@@ -1,26 +1,24 @@
#!/bin/bash
## install Sublime Text 2
-logfile=/dev/null
-
echo "Adding Repository..."
-sudo add-apt-repository -y ppa:webupd8team/sublime-text-2 &> $logfile
-sudo apt-get -qq update &> $logfile
+sudo add-apt-repository -y ppa:webupd8team/sublime-text-2 >> $logfile
+sudo apt-get -qq update >> $logfile
echo -e "What version of Sublime Text 2 would you like to install (1=dev, \033[1m2=beta\033[0m)?"
read -p "Option: " CONFIRM
echo ""
if [ "$CONFIRM" = 1 ]; then
echo "Downloading and Installing Sublime Text 2 Dev..."
- sudo apt-get -qqy install sublime-text-2-dev &> $logfile
+ sudo apt-get -qqy install sublime-text-2-dev >> $logfile
elif [ "$CONFIRM" = 2 ]; then
echo "Downloading and Installing Sublime Text 2 Beta..."
- sudo apt-get -qqy install sublime-text-2-beta &> $logfile
+ sudo apt-get -qqy install sublime-text-2-beta >> $logfile
else
echo "Downloading and Installing Sublime Text 2 Beta..."
- sudo apt-get -qqy install sublime-text-2-beta &> $logfile
+ sudo apt-get -qqy install sublime-text-2-beta >> $logfile
fi
echo "Installing Sublime Package Control..."
-wget "http://sublime.wbond.net/Package%20Control.sublime-package" -O ~/"Downloads/Package Control.sublime-package" &> $logfile
-mv ~/"Downloads/Package Control.sublime-package" ~/".config/sublime-text-2/Installed Packages" &> $logfile
+wget "http://sublime.wbond.net/Package%20Control.sublime-package" -O ~/"Downloads/Package Control.sublime-package" >> $logfile
+mv ~/"Downloads/Package Control.sublime-package" ~/".config/sublime-text-2/Installed Packages" >> $logfile
View
22 lib/installs/truecrypt.sh
@@ -1,13 +1,11 @@
#!/bin/bash
# Downloads and Installs Truecrypt
-logfile=/dev/null
+err=`wget http://www.truecrypt.org/downloads -O ~/Downloads/truecrypt-index.html` >> $logfile
+VSTABLE=`egrep -o "Latest Stable Version - .*</h1>" ~/Downloads/truecrypt-index.html` >> $logfile
+TVER=`echo "${VSTABLE}"|cut -d " " -f 5|cut -d "<" -f 1` >> $logfile
-err=`wget http://www.truecrypt.org/downloads -O ~/Downloads/truecrypt-index.html` &> $logfile
-VSTABLE=`egrep -o "Latest Stable Version - .*</h1>" ~/Downloads/truecrypt-index.html` &> $logfile
-TVER=`echo "${VSTABLE}"|cut -d " " -f 5|cut -d "<" -f 1` &> $logfile
-
-rm ~/Downloads/truecrypt-index.html &> $logfile
+rm ~/Downloads/truecrypt-index.html >> $logfile
read -p "Install Truecrypt v${TVER} (y/n)? " CONFIRM
echo ""
@@ -21,13 +19,13 @@ else
VER="x86"
fi
- mkdir ~/Downloads/Truecrypt &> $logfile
+ mkdir ~/Downloads/Truecrypt >> $logfile
echo "Downloading Truecrypt..."
- wget http://www.truecrypt.org/download/truecrypt-${TVER}-linux-${VER}.tar.gz -O ~/Downloads/truecrypt-${TVER}-linux-${VER}.tar.gz &> $logfile
- tar -zxvf ~/Downloads/truecrypt-${TVER}-linux-${VER}.tar.gz -C ~/Downloads/Truecrypt/ &> $logfile
- rm ~/Downloads/truecrypt-${TVER}-linux-${VER}.tar.gz &> $logfile
+ wget http://www.truecrypt.org/download/truecrypt-${TVER}-linux-${VER}.tar.gz -O ~/Downloads/truecrypt-${TVER}-linux-${VER}.tar.gz >> $logfile
+ tar -zxvf ~/Downloads/truecrypt-${TVER}-linux-${VER}.tar.gz -C ~/Downloads/Truecrypt/ >> $logfile
+ rm ~/Downloads/truecrypt-${TVER}-linux-${VER}.tar.gz >> $logfile
echo "Installing Truecrypt..."
- sudo ~/Downloads/Truecrypt/truecrypt-${TVER}-setup-${VER} &> $logfile
- rm -rf ~/Downloads/Truecrypt &> $logfile
+ sudo ~/Downloads/Truecrypt/truecrypt-${TVER}-setup-${VER} >> $logfile
+ rm -rf ~/Downloads/Truecrypt >> $logfile
fi
View
22 lib/installs/vaioz_app.sh
@@ -1,29 +1,27 @@
#!/bin/bash
# Installs the Vaio Z Kernel Module
-logfile=/dev/null
-
echo "Downloading Vaio Z Kernel Module..."
-wget http://www.logic.at/staff/preining/software/sony-laptop-zseries-0.9np8.tar.gz -O ~/Downloads/sony-laptop-zseries-0.9np8.tar.gz &> $logfile
-mkdir ~/vaio_kernel_module/ &> $logfile
+wget http://www.logic.at/staff/preining/software/sony-laptop-zseries-0.9np8.tar.gz -O ~/Downloads/sony-laptop-zseries-0.9np8.tar.gz >> $logfile
+mkdir ~/vaio_kernel_module/ >> $logfile
echo "Extracting Vaio Z Kernel Module..."
-tar -xvzf ~/Downloads/sony-laptop-zseries-0.9np8.tar.gz -C ~/vaio_kernel_module/ &> $logfile
+tar -xvzf ~/Downloads/sony-laptop-zseries-0.9np8.tar.gz -C ~/vaio_kernel_module/ >> $logfile
rm ~/Downloads/sony-laptop-zseries-0.9np8.tar.gz
echo "Installing Vaio Z Kernel Module..."
-pushd ~/vaio_kernel_module/sony-laptop-zseries-0.9np8/ &> $logfile
-make &> $logfile
-sudo make install &> $logfile
-test=`sudo make test` &> $logfile
+pushd ~/vaio_kernel_module/sony-laptop-zseries-0.9np8/ >> $logfile
+make >> $logfile
+sudo make install >> $logfile
+test=`sudo make test` >> $logfile
-correct=`echo -e $"rmmod sony-laptop\ninsmod sony-laptop.ko debug=1"` &> $logfile
+correct=`echo -e $"rmmod sony-laptop\ninsmod sony-laptop.ko debug=1"` >> $logfile
status="success"
if [ "$test" != "$correct" ];
then
status="failed"
fi
-popd &> $logfile
-rm -rf ~/vaio_kernel_module/ &> $logfile
+popd >> $logfile
+rm -rf ~/vaio_kernel_module/ >> $logfile
if [ "$status" = "failed" ];
then
View
5 post_install.sh
@@ -2,7 +2,8 @@
## Trolling Manor Post Install Script for Ubuntu (11.04) AND MACOSX!!!!!!
ROOT=$(pwd) # the root of the app. Pass into all other scripts.
-source $ROOT/lib/app/helper.sh $ROOT
+logfile=$ROOT/logfile.txt
+source $ROOT/lib/app/helper.sh $ROOT $logfile
platform=''
if [ -d "/etc/lsb-release/" ]; then
@@ -17,7 +18,7 @@ fi
# Creates a completely new environment for it
run_app() {
app=$1
- bash $ROOT/lib/app/$app $ROOT
+ bash $ROOT/lib/app/$app $ROOT $logfile
}
mac_choose_what_to_do() {
Please sign in to comment.
Something went wrong with that request. Please try again.