From 67286c69d03c9f34370bf97a943c8e8b77882634 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 14:49:06 -0700 Subject: [PATCH 01/53] Changed README to reflect redhat and fedora --- README.mkdn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.mkdn b/README.mkdn index e723d1e..a59a800 100644 --- a/README.mkdn +++ b/README.mkdn @@ -1,4 +1,4 @@ -Swordrune10's Debian/Ubuntu Scripts +Swordrune10's Redhat/Fedora Scripts ------------------------- From 9aa5feead9884bccf1c1594195e5e78755c14e05 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 15:52:19 -0700 Subject: [PATCH 02/53] update: convert to fedora --- app/update | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/update b/app/update index 3ffe4e6..944e76d 100755 --- a/app/update +++ b/app/update @@ -13,7 +13,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo apt-get update -sudo apt-get --allow-unauthenticated dist-upgrade -sudo apt-get autoclean -sudo apt-get autoremove +sudo yum update +sudo yum clean all From f6276d7965e54d308500609d44a7c3c2f7ee9218 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:09:27 -0700 Subject: [PATCH 03/53] setupbin: change to elif to make sure it doesnt patch if its already there --- setupbin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setupbin b/setupbin index 325dfd5..78fb2d3 100755 --- a/setupbin +++ b/setupbin @@ -16,8 +16,7 @@ cd ~ if ( grep -q HOME/bin/android .profile );then echo ".profile doesn't need to be patched" -fi -if ( ! grep -q HOME/bin/android .profile ) && ( find $HOME/bin/private &> /dev/null );then +elif ( ! grep -q HOME/bin/android .profile ) && ( find $HOME/bin/private &> /dev/null );then sed -i '/PATH"/ a\ PATH="$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server:$PATH"' .profile echo "patched .profile" else From ebdbda123b0365daae413e4b90a7332637ab7035 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:15:38 -0700 Subject: [PATCH 04/53] setupbin: convert to fedora --- setupbin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setupbin b/setupbin index 78fb2d3..92aefb3 100755 --- a/setupbin +++ b/setupbin @@ -14,12 +14,12 @@ # limitations under the License. cd ~ -if ( grep -q HOME/bin/android .profile );then +if ( grep -q HOME/bin/android .bash_profile );then echo ".profile doesn't need to be patched" -elif ( ! grep -q HOME/bin/android .profile ) && ( find $HOME/bin/private &> /dev/null );then - sed -i '/PATH"/ a\ PATH="$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server:$PATH"' .profile +elif ( ! grep -q HOME/bin/android .bash_profile ) && ( find $HOME/bin/private &> /dev/null );then + sed -i '/PATH"/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .profile echo "patched .profile" else - sed -i '/PATH"/ a\ PATH="$HOME/bin/android:$HOME/bin/app:$HOME/bin/server:$PATH"' .profile + sed -i '/PATH"/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .profile echo "patched .profile" fi From f419fe1511053789cd515a794891e993cd24260d Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:17:37 -0700 Subject: [PATCH 05/53] setupbin: convert derp --- setupbin | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setupbin b/setupbin index 92aefb3..a9e9993 100755 --- a/setupbin +++ b/setupbin @@ -15,11 +15,11 @@ cd ~ if ( grep -q HOME/bin/android .bash_profile );then - echo ".profile doesn't need to be patched" + echo ".bash_profile doesn't need to be patched" elif ( ! grep -q HOME/bin/android .bash_profile ) && ( find $HOME/bin/private &> /dev/null );then - sed -i '/PATH"/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .profile - echo "patched .profile" + sed -i '/PATH"/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .bash_profile + echo "patched .bash_profile" else - sed -i '/PATH"/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .profile - echo "patched .profile" + sed -i '/PATH"/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .bash_profile + echo "patched .bash_profile" fi From 4ca619fcf3dad97156bb8707d0227b8269d9ffa9 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:27:48 -0700 Subject: [PATCH 06/53] setupbin: edit sed to hopefully append right --- setupbin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupbin b/setupbin index a9e9993..a05a284 100755 --- a/setupbin +++ b/setupbin @@ -17,9 +17,9 @@ cd ~ if ( grep -q HOME/bin/android .bash_profile );then echo ".bash_profile doesn't need to be patched" elif ( ! grep -q HOME/bin/android .bash_profile ) && ( find $HOME/bin/private &> /dev/null );then - sed -i '/PATH"/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .bash_profile + sed -i '/PATH="/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .bash_profile echo "patched .bash_profile" else - sed -i '/PATH"/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .bash_profile + sed -i '/PATH="/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .bash_profile echo "patched .bash_profile" fi From 48f6fcab6fcd03a66921e11bc0acdad464a168fa Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:31:04 -0700 Subject: [PATCH 07/53] setupbin: remove spacing and second try to fix append --- setupbin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupbin b/setupbin index a05a284..2095e31 100755 --- a/setupbin +++ b/setupbin @@ -17,9 +17,9 @@ cd ~ if ( grep -q HOME/bin/android .bash_profile );then echo ".bash_profile doesn't need to be patched" elif ( ! grep -q HOME/bin/android .bash_profile ) && ( find $HOME/bin/private &> /dev/null );then - sed -i '/PATH="/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .bash_profile + sed -i '/PATH=/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .bash_profile echo "patched .bash_profile" else - sed -i '/PATH="/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .bash_profile + sed -i '/PATH=/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .bash_profile echo "patched .bash_profile" fi From b8d4bffe232278c77e6dfce00293b5fdd14ffe6d Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:34:17 -0700 Subject: [PATCH 08/53] setupbin: left one space to append --- setupbin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupbin b/setupbin index 2095e31..3543600 100755 --- a/setupbin +++ b/setupbin @@ -17,9 +17,9 @@ cd ~ if ( grep -q HOME/bin/android .bash_profile );then echo ".bash_profile doesn't need to be patched" elif ( ! grep -q HOME/bin/android .bash_profile ) && ( find $HOME/bin/private &> /dev/null );then - sed -i '/PATH=/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .bash_profile + sed -i '/PATH=/ a\PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .bash_profile echo "patched .bash_profile" else - sed -i '/PATH=/ a\ PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .bash_profile + sed -i '/PATH=/ a\PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .bash_profile echo "patched .bash_profile" fi From 508e7f96482d60093088acae4ce0c4cfb8e1e11f Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:36:46 -0700 Subject: [PATCH 09/53] addpkg: convert to fedora --- app/addpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/addpkg b/app/addpkg index 310e501..a1da332 100755 --- a/app/addpkg +++ b/app/addpkg @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo apt-get install $@ +sudo yum install $@ From 5a2574a444d3206fa43c9516ba1db13da1a4ea60 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:41:23 -0700 Subject: [PATCH 10/53] update: add missing piece --- app/update | 1 + 1 file changed, 1 insertion(+) diff --git a/app/update b/app/update index 944e76d..842c459 100755 --- a/app/update +++ b/app/update @@ -14,4 +14,5 @@ # limitations under the License. sudo yum update +sudo yum upgrade sudo yum clean all From 0dc5535c78ee8da4db8dd1c3bcde3a3b70ae1bb7 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:46:09 -0700 Subject: [PATCH 11/53] update: confused commands are confused --- app/update | 1 - 1 file changed, 1 deletion(-) diff --git a/app/update b/app/update index 842c459..d6fc7bf 100755 --- a/app/update +++ b/app/update @@ -13,6 +13,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo yum update sudo yum upgrade sudo yum clean all From 0ba0931dbe5b7fae67805dc51999536e1c53f076 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 16:50:26 -0700 Subject: [PATCH 12/53] addrepo: convert to fedora --- app/addrepo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/addrepo b/app/addrepo index 4f2cb18..7546651 100755 --- a/app/addrepo +++ b/app/addrepo @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo add-apt-repository "$@" +sudo yum-config-manager --add-repo "$@" From 9289c90262564e75c40af7c975560f5a8a161672 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 17:11:46 -0700 Subject: [PATCH 13/53] Add addrpmfusion --- app/addrpmfusion | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 app/addrpmfusion diff --git a/app/addrpmfusion b/app/addrpmfusion new file mode 100755 index 0000000..ab10687 --- /dev/null +++ b/app/addrpmfusion @@ -0,0 +1,17 @@ +#!/bin/bash +# Copyright (C) 2014 Sean Donovan + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm +sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm From 53b5e370ad213f6b2fce956bd46ceaff12110575 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 25 Apr 2014 17:18:52 -0700 Subject: [PATCH 14/53] update: yum clean cleans too much --- app/update | 1 - 1 file changed, 1 deletion(-) diff --git a/app/update b/app/update index d6fc7bf..446572a 100755 --- a/app/update +++ b/app/update @@ -14,4 +14,3 @@ # limitations under the License. sudo yum upgrade -sudo yum clean all From 1f735b1844eea89c4040bbcc48eab0c3e7aac909 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sat, 26 Apr 2014 16:44:45 -0700 Subject: [PATCH 15/53] removepkg: convert to fedora --- app/removepkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/removepkg b/app/removepkg index 400be4d..43bc915 100755 --- a/app/removepkg +++ b/app/removepkg @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo apt-get remove $@ +sudo yum remove $@ From f6e78d14d05f750e9b49f0526071dda03724229c Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sat, 26 Apr 2014 16:55:32 -0700 Subject: [PATCH 16/53] removerepo: kinda sorta convert to fedora --- app/removerepo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/removerepo b/app/removerepo index 7177855..48c9852 100755 --- a/app/removerepo +++ b/app/removerepo @@ -13,4 +13,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo add-apt-repository --remove "$@" +cd /etc/yum.repos.d +sudo rm -rf "$@" From 057fcc064ab1315c5118ccdfe967a745755c46b2 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sat, 26 Apr 2014 16:58:30 -0700 Subject: [PATCH 17/53] torrentmaker: convert to fedora --- app/torrentmaker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/torrentmaker b/app/torrentmaker index 85102f6..48f9769 100755 --- a/app/torrentmaker +++ b/app/torrentmaker @@ -23,7 +23,7 @@ if [ ! "$needsinstall" ]; then echo "All prerequisites are already installed" else echo "A prerequisites needs to be installed" - sudo apt-get install $needsinstall + sudo yum install $needsinstall fi echo "You want to make a webseeder?" From bad9c8f3fbb464fb4a323586beb1fa4d47f7e30e Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sat, 26 Apr 2014 17:01:46 -0700 Subject: [PATCH 18/53] limitbandwidth: convert to fedora --- server/limitbandwidth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/limitbandwidth b/server/limitbandwidth index b953249..c3b03b0 100755 --- a/server/limitbandwidth +++ b/server/limitbandwidth @@ -23,7 +23,7 @@ if [ ! "$needsinstall" ]; then echo "All prerequisites are already installed" else echo "A prerequisites needs to be installed" - sudo apt-get install $needsinstall + sudo yum install $needsinstall fi if [ "$1" == "clear" ]; then From df1bb5807deb5b5175c49136819c721d5d17024f Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sat, 26 Apr 2014 17:06:27 -0700 Subject: [PATCH 19/53] restartapache: convert to fedora --- server/restartapache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/restartapache b/server/restartapache index dde5a28..c1e7273 100755 --- a/server/restartapache +++ b/server/restartapache @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo /etc/init.d/apache2 restart +sudo service httpd restart From 9ec2427be2cf074d5f9b876f4ac307856823e3d4 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sat, 26 Apr 2014 17:11:11 -0700 Subject: [PATCH 20/53] Remove Ubuntu files --- server/ubuonestop | 16 ---------------- server/ubuonesync | 16 ---------------- 2 files changed, 32 deletions(-) delete mode 100755 server/ubuonestop delete mode 100755 server/ubuonesync diff --git a/server/ubuonestop b/server/ubuonestop deleted file mode 100755 index f90b36a..0000000 --- a/server/ubuonestop +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -u1sdtool --quit diff --git a/server/ubuonesync b/server/ubuonesync deleted file mode 100755 index 00f1786..0000000 --- a/server/ubuonesync +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -watch -n .1 u1sdtool --current-transfers From fb1ed9b535366f55f68df4a0122eae30bf1a654c Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sat, 26 Apr 2014 17:18:29 -0700 Subject: [PATCH 21/53] Add setuplamp --- server/setuplamp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 server/setuplamp diff --git a/server/setuplamp b/server/setuplamp new file mode 100755 index 0000000..b1c954b --- /dev/null +++ b/server/setuplamp @@ -0,0 +1,24 @@ +#!/bin/bash +# Copyright (C) 2014 Sean Donovan + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +sudo yum install httpd mysql mysql-server php php-mysql + +sudo /usr/bin/mysql_secure_installation + +sudo service httpd start +sudo service mysqld start + +sudo chkconfig httpd on +sudo chkconfig mysqld on From 17a61d061fa2d32d4d7cdc06c95baf8d4c279729 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 27 Apr 2014 17:20:33 -0700 Subject: [PATCH 22/53] Update mkdvd to use less programs --- app/mkdvd | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/app/mkdvd b/app/mkdvd index 69c92f0..6c42e13 100755 --- a/app/mkdvd +++ b/app/mkdvd @@ -14,16 +14,9 @@ # limitations under the License. echo "Checking if prerequisites are installed" -for f in `echo mplayer` `echo movie-to-dvd` `echo dvdauthor` `echo genisoimage` `echo libxvidcore4` +for f in `echo libav-tools` `echo dvdauthor` `echo genisoimage` do - if [ $f == "libxvidcore4" ]; then - if ( ! locate libxvidcore4 &> /dev/null ); then - needsinstall="$needsinstall $f" - fi - elif ( ! type -a $f &> /dev/null ); then - if [ $f == "movie-to-dvd" ]; then - f="videotrans" - fi + if ( ! type -a $f &> /dev/null ); then needsinstall="$needsinstall $f" fi done @@ -41,10 +34,10 @@ read videostandard if [ $videostandard == "NTSC" ] || [ $videostandard == "ntsc" ]; then export VIDEO_FORMAT=NTSC - movietodvdstandard=ntsc + movietodvdstandard=ntsc-dvd elif [ $videostandard == "PAL" ] || [ $videostandard == "pal" ]; then export VIDEO_FORMAT=PAL - movietodvdstandard=pal + movietodvdstandard=pal-dvd else echo "You did not type in the correct response! try again.." echo "" @@ -66,9 +59,7 @@ cd "$whereisvideo"/temp movietitle=$(echo "$moviefile" | sed s/\.[^\.]*$//) -movie-to-dvd -m $movietodvdstandard -o . ../"$moviefile" - -mplex -f 8 -o "$movietitle".mpg "$movietitle".m2v "$movietitle".ac3 +avconv -i ../"$moviefile" -qscale 1 -target $movietodvdstandard "$movietitle".mpg dvdauthor -o dvd/ -t "$movietitle".mpg From 21848c158595b839e2f22d65302b5403ab9130df Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 27 Apr 2014 17:27:29 -0700 Subject: [PATCH 23/53] mkdvd: fix avconv check --- app/mkdvd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/mkdvd b/app/mkdvd index 6c42e13..7e43ac8 100755 --- a/app/mkdvd +++ b/app/mkdvd @@ -14,9 +14,12 @@ # limitations under the License. echo "Checking if prerequisites are installed" -for f in `echo libav-tools` `echo dvdauthor` `echo genisoimage` +for f in `echo avconv` `echo dvdauthor` `echo genisoimage` do if ( ! type -a $f &> /dev/null ); then + if [ $f == "avconv" ]; then + f="libav-tools" + fi needsinstall="$needsinstall $f" fi done From f6241df39d538ff585d6ae0a9d47d0f8fc2e099d Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 27 Apr 2014 17:37:59 -0700 Subject: [PATCH 24/53] mkdvd: add video scaling to auto select aspect --- app/mkdvd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mkdvd b/app/mkdvd index 7e43ac8..512b9a8 100755 --- a/app/mkdvd +++ b/app/mkdvd @@ -62,7 +62,7 @@ cd "$whereisvideo"/temp movietitle=$(echo "$moviefile" | sed s/\.[^\.]*$//) -avconv -i ../"$moviefile" -qscale 1 -target $movietodvdstandard "$movietitle".mpg +avconv -i ../"$moviefile" -qscale 1 -vf "scale=640:-1" -target $movietodvdstandard "$movietitle".mpg dvdauthor -o dvd/ -t "$movietitle".mpg From 86a0cc6200a1e9eadba3f0c27cac4f3c0272a92d Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 27 Apr 2014 19:34:43 -0700 Subject: [PATCH 25/53] mkdvd: add ffmpeg/avconv repo since 14.04 avconv is stuttery --- app/mkdvd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/mkdvd b/app/mkdvd index 512b9a8..9cab34c 100755 --- a/app/mkdvd +++ b/app/mkdvd @@ -27,7 +27,11 @@ done if [ ! "$needsinstall" ]; then echo "All prerequisites are already installed" else + echo "Adding necessary repo" + addrepo ppa:jon-severinsson/ffmpeg + echo "Some prerequisites needs to be installed" + sudo apt-get update sudo apt-get install $needsinstall fi From fd40fe3b1e47e42332299e1ecc87f2765f8439b0 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 27 Apr 2014 19:56:24 -0700 Subject: [PATCH 26/53] mkdvd: convert to fedora --- app/mkdvd | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/mkdvd b/app/mkdvd index 9cab34c..802a79c 100755 --- a/app/mkdvd +++ b/app/mkdvd @@ -14,12 +14,9 @@ # limitations under the License. echo "Checking if prerequisites are installed" -for f in `echo avconv` `echo dvdauthor` `echo genisoimage` +for f in `echo ffmpeg` `echo dvdauthor` `echo genisoimage` do if ( ! type -a $f &> /dev/null ); then - if [ $f == "avconv" ]; then - f="libav-tools" - fi needsinstall="$needsinstall $f" fi done @@ -28,11 +25,10 @@ if [ ! "$needsinstall" ]; then echo "All prerequisites are already installed" else echo "Adding necessary repo" - addrepo ppa:jon-severinsson/ffmpeg + addrpmfusion echo "Some prerequisites needs to be installed" - sudo apt-get update - sudo apt-get install $needsinstall + sudo yum install $needsinstall fi videostandard () { From b4e3ec90e1d8aa918d5ef55e6da7e88467129b8d Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 27 Apr 2014 19:58:45 -0700 Subject: [PATCH 27/53] mkdvd: silly derp --- app/mkdvd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mkdvd b/app/mkdvd index 802a79c..80c9a7a 100755 --- a/app/mkdvd +++ b/app/mkdvd @@ -62,7 +62,7 @@ cd "$whereisvideo"/temp movietitle=$(echo "$moviefile" | sed s/\.[^\.]*$//) -avconv -i ../"$moviefile" -qscale 1 -vf "scale=640:-1" -target $movietodvdstandard "$movietitle".mpg +ffmpeg -i ../"$moviefile" -qscale 1 -vf "scale=640:-1" -target $movietodvdstandard "$movietitle".mpg dvdauthor -o dvd/ -t "$movietitle".mpg From cede93e4e328308571b28bc20a32dd8d3bd6db20 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 27 Apr 2014 20:18:25 -0700 Subject: [PATCH 28/53] addrpmfusion: add checks to see if installed or not --- app/addrpmfusion | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/app/addrpmfusion b/app/addrpmfusion index ab10687..abd947e 100755 --- a/app/addrpmfusion +++ b/app/addrpmfusion @@ -13,5 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm +yumrepo=$(echo "/etc/yum.repos.d") + +if ( find $yumrepo/rpmfusion-free.repo -maxdepth 1 &> /dev/null); then + echo "rpmfusion free already installed!" +else + echo "installing rpmfusion free" + sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm +fi + +if ( find $yumrepo/rpmfusion-nonfree.repo -maxdepth 1 &> /dev/null); then + echo "rpmfusion nonfree already installed!" +else + echo "installing rpmfusion nonfree" + sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm +fi From 3fcfa5ca243ae57dd4ca93f6fd6fa23e53bc9a63 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Tue, 3 Jun 2014 14:06:48 -0700 Subject: [PATCH 29/53] setupbin: Updated private folder setup --- setupbin | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/setupbin b/setupbin index 3543600..2679858 100755 --- a/setupbin +++ b/setupbin @@ -13,13 +13,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -cd ~ -if ( grep -q HOME/bin/android .bash_profile );then +if ( grep -q HOME/bin/android $HOME/.bash_profile ); then echo ".bash_profile doesn't need to be patched" -elif ( ! grep -q HOME/bin/android .bash_profile ) && ( find $HOME/bin/private &> /dev/null );then - sed -i '/PATH=/ a\PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/private:$HOME/bin/server"' .bash_profile - echo "patched .bash_profile" else - sed -i '/PATH=/ a\PATH="$PATH:$HOME/bin/android:$HOME/bin/app:$HOME/bin/server"' .bash_profile + sed -i '/PATH"/ a\ PATH="$HOME/bin/android:$HOME/bin/app:$HOME/bin/server:$PATH"' $HOME/.bash_profile echo "patched .bash_profile" fi + +if ( ! grep -q HOME/bin/private $HOME/.bash_profile ) && ( find $HOME/bin/private &> /dev/null ); then + sed -i '/PATH=$HOME"/ a\ PATH="$HOME/bin/private:$PATH"' $HOME/.bash_profile + echo "patched .bash_profile to include private" +fi From e76508329f8eed19e4e0402a63a556010920d5d1 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Tue, 3 Jun 2014 14:11:35 -0700 Subject: [PATCH 30/53] setupbin: fix private append --- setupbin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupbin b/setupbin index 2679858..42022b6 100755 --- a/setupbin +++ b/setupbin @@ -21,6 +21,6 @@ else fi if ( ! grep -q HOME/bin/private $HOME/.bash_profile ) && ( find $HOME/bin/private &> /dev/null ); then - sed -i '/PATH=$HOME"/ a\ PATH="$HOME/bin/private:$PATH"' $HOME/.bash_profile + sed -i '/PATH="$HOME/bin/android/ a\ PATH="$HOME/bin/private:$PATH"' $HOME/.bash_profile echo "patched .bash_profile to include private" fi From 62ef1589501b9685699cca5893c1a486367abafb Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Tue, 3 Jun 2014 14:13:03 -0700 Subject: [PATCH 31/53] setupbin: forward slash the slashes --- setupbin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupbin b/setupbin index 42022b6..7d3d4ab 100755 --- a/setupbin +++ b/setupbin @@ -21,6 +21,6 @@ else fi if ( ! grep -q HOME/bin/private $HOME/.bash_profile ) && ( find $HOME/bin/private &> /dev/null ); then - sed -i '/PATH="$HOME/bin/android/ a\ PATH="$HOME/bin/private:$PATH"' $HOME/.bash_profile + sed -i '/PATH="$HOME\/bin\/android/ a\ PATH="$HOME/bin/private:$PATH"' $HOME/.bash_profile echo "patched .bash_profile to include private" fi From 1f9796d5c45ca694d4aac330c5ae12e3faaa3665 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 16:26:14 -0700 Subject: [PATCH 32/53] Remove unnecessary files and create chromeinstall --- android/moto-fastboot | Bin 42789 -> 0 bytes app/addpkg | 16 -------- app/addrepo | 16 -------- app/addrpmfusion | 30 --------------- app/avconvchromecast | 35 ------------------ app/mkdvd | 72 ------------------------------------ app/removepkg | 16 -------- app/removerepo | 17 --------- app/update => chromeinstall | 2 +- server/limitbandwidth | 39 ------------------- server/restartapache | 16 -------- server/setuplamp | 24 ------------ server/updatetime | 19 ---------- setupbin | 11 +++++- 14 files changed, 10 insertions(+), 303 deletions(-) delete mode 100755 android/moto-fastboot delete mode 100755 app/addpkg delete mode 100755 app/addrepo delete mode 100755 app/addrpmfusion delete mode 100755 app/avconvchromecast delete mode 100755 app/mkdvd delete mode 100755 app/removepkg delete mode 100755 app/removerepo rename app/update => chromeinstall (97%) delete mode 100755 server/limitbandwidth delete mode 100755 server/restartapache delete mode 100755 server/setuplamp delete mode 100755 server/updatetime diff --git a/android/moto-fastboot b/android/moto-fastboot deleted file mode 100755 index a8ca4866d917ccd55cdd626cace2409e9f10e820..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 42789 zcmeHwdwf*Y_3ueSc!^F#R8*=Xf`USbAc{P6cnl62BqC8%=;SqlNM6m%AaFszA(nAW z#a~6az4TZ5Qd((?)<<|H0g+Ip7Ok~dsf`x3snIqe}!D6joutz}Z+p@MiAXN>UWDT%9)+N?3 zt1lqA_;>`vQk|KyTZ=Yje@&NzvJXC!vK3%bwnt7(IZT1kf;xiQI^PwDXXavj)hc84!3+$J@OT3z5>l>%AHy zP-ET0!kQ)D$WZ<|Rkh(2V^>VNcI>s+ANu3F7w+?Hee$u9z!l(gK0cS@95lQhdII&sq4SA9^U#!T+{y z#?Fid8P34xJO}5Qj&pN*i9WdiWj}n(m|TYQf%pu^hsOwfuEb|3J{RM21wLov!-G20 zZsZleQ9`6EgkS%0%uGGhPCp(7J#CYI>;<4Vcu@xWSsCcZW}v5i-1wv)^b2=75cLv# zdediS2KjGhps&dQ|3?P+iVX6%WuT`|_NM1U8RSgOK;Mx8{`CxUp3gx4LND>gofvR0RzNYL`Q3d1z&Qz+XnOV5vYGR#jbj zs9MBhQC?@V{L&S5q6H$bFA;^dicUBqz2j64%B&ctSym}YoDxtQnPITV}8JO z&_33c$fN~Pq^CwXWQl&<$&9B0>}af+~hpundE>o z7chs%0p}WO4xa<=%!i5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)6*x}Pj(M8?nV}xR$TK)N zE7tIkhELOccV&=Mn*kol0N;`U{~~rpK8r^G{KIV?flScw zUupOS`3jz=;qMDvR~$um2KXRsAe^0jfwgpfiG$j*E&!bEb{BaB{-MSW7kCP(R3>JC z-y-sdSnjlSZK0O$*6V_a+e(x~C1wH>b0sx=8*R~*H+ zGr*tMa;E6Gv{duFoPqxB4Di2ZfS-YcDi7B+p)@<64>;|7q3-W^-R>0{&ObHA<8%3j zpKJI}b$)e|hR+tbt~iRa4DjVz&R29ClV^Ltw=M(yW14=`SdU0Iy4<}VGez_a`{_0@Q;z9Rp+36sWK zMEI*JRATxDnDOX#`D@s@Q^=f)vLFDzOQGW@^Cw(4;TpWV-k@GA2-h2J_<%k-RU6=22C3j6 z8Ho$8K$unICxLp$1CZJZXFVLMsKI@-#*R9j%&Y3B1!)rgTEc2@YH1CJvU2ng7O9!t^;ofqk$8%HRoEbCyvcq(t3ry%j+$CbA>&sS?RAY4K3w4-iHm;RaTU)Ow~;FoYJF9jGJJguilRlE zSh~q71(5lD{WmVF9VPJ57a`Rh2KZ7}a$k!;d)NZ7cqWLTX0=EiX-*1~6K%&c77z z%E4tQjQ(v^2Lpj+smz2UkfuTP0%;a2J5b0&CARW#B^~u8#A0sLm^UpMamwq{W*QYu zH%@h3-7*As6L{$Sf!gJ%I{N9}wRIdIyz+{_EszrJAhjZ#W?#P_52vI@Pb^{hfeuVr zEPsBpdg-MRZe8c+2*4jOam$xsaa;zXDn}TTRqC{eP_s;4#KZfB>|T18>6vC7at@`R zxk?$@v1DeOcklf297WesvWUpfKPbP3x67}kSmg}ar@L$jKTMG3JQz%q zRoHoktWqYzRm!|cHMu_^D|)Z-!d{vj%MW09MbI=P{z${nVj;ZTnJT=ZDqs /dev/null); then - echo "rpmfusion free already installed!" -else - echo "installing rpmfusion free" - sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -fi - -if ( find $yumrepo/rpmfusion-nonfree.repo -maxdepth 1 &> /dev/null); then - echo "rpmfusion nonfree already installed!" -else - echo "installing rpmfusion nonfree" - sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -fi diff --git a/app/avconvchromecast b/app/avconvchromecast deleted file mode 100755 index 8260837..0000000 --- a/app/avconvchromecast +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -SAVEIFS=$IFS -IFS=$(echo -en "\n\b") -for f in `echo .3gp` `echo .asf` `echo .asx` `echo .avi` `echo .divx` `echo .dvx` `echo .flv` `echo .h264` `echo .m2ts` \ -`echo .m4v` `echo .mkv` `echo .mov` `echo .mp4` `echo .mpeg` `echo .mts` `echo .ogm` `echo .rm` `echo .rmvb` `echo .swf` \ -`echo .wm` `echo .wmv` `echo .xvid` `echo .yuv` -do - for video in `find . -print | grep "$f"` - do - if ( ! avprobe "$video" |& grep "No such file or directory" &> /dev/null ) \ - || ( avprobe "$video" |& grep "Video:" &> /dev/null ); then - if ( avprobe "$video" |& grep "Video: h264" &> /dev/null ) \ - && ( avprobe "$video" |& grep "Audio: aac" &> /dev/null ); then - echo "$video's video format is compatible" - else - echo "$video's video format is not compatible" - fi - fi - done -# find . -type f -name "*.flac" -exec bash -c 'avconv -i "$0" -c:a alac "${0/%flac/m4a}"' '{}' \; -done diff --git a/app/mkdvd b/app/mkdvd deleted file mode 100755 index 80c9a7a..0000000 --- a/app/mkdvd +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -echo "Checking if prerequisites are installed" -for f in `echo ffmpeg` `echo dvdauthor` `echo genisoimage` -do - if ( ! type -a $f &> /dev/null ); then - needsinstall="$needsinstall $f" - fi -done - -if [ ! "$needsinstall" ]; then - echo "All prerequisites are already installed" -else - echo "Adding necessary repo" - addrpmfusion - - echo "Some prerequisites needs to be installed" - sudo yum install $needsinstall -fi - -videostandard () { -echo "Is this dvd going to be NTSC or PAL?" -read videostandard - -if [ $videostandard == "NTSC" ] || [ $videostandard == "ntsc" ]; then - export VIDEO_FORMAT=NTSC - movietodvdstandard=ntsc-dvd -elif [ $videostandard == "PAL" ] || [ $videostandard == "pal" ]; then - export VIDEO_FORMAT=PAL - movietodvdstandard=pal-dvd -else - echo "You did not type in the correct response! try again.." - echo "" - videostandard -fi -} -videostandard - -echo "Where is the video that is being converted at exactly?" -echo "Example: If it is in your home folder it will be at $HOME" -read whereisvideo - -echo "What is the name of the video file? please include extension" -echo "Example: i_am_a_valid_video_file.mp4" -read moviefile - -mkdir -p "$whereisvideo"/temp -cd "$whereisvideo"/temp - -movietitle=$(echo "$moviefile" | sed s/\.[^\.]*$//) - -ffmpeg -i ../"$moviefile" -qscale 1 -vf "scale=640:-1" -target $movietodvdstandard "$movietitle".mpg - -dvdauthor -o dvd/ -t "$movietitle".mpg - -dvdauthor -o dvd/ -T -genisoimage -dvd-video -v -o ../"$movietitle".iso dvd -cd .. -rm -r temp diff --git a/app/removepkg b/app/removepkg deleted file mode 100755 index 43bc915..0000000 --- a/app/removepkg +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -sudo yum remove $@ diff --git a/app/removerepo b/app/removerepo deleted file mode 100755 index 48c9852..0000000 --- a/app/removerepo +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -cd /etc/yum.repos.d -sudo rm -rf "$@" diff --git a/app/update b/chromeinstall similarity index 97% rename from app/update rename to chromeinstall index 446572a..7411d3b 100755 --- a/app/update +++ b/chromeinstall @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -sudo yum upgrade + diff --git a/server/limitbandwidth b/server/limitbandwidth deleted file mode 100755 index c3b03b0..0000000 --- a/server/limitbandwidth +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -echo "Checking if prerequisites are installed" - -if ( ! type -a wondershaper &> /dev/null ); then - needsinstall="wondershaper" -fi - -if [ ! "$needsinstall" ]; then - echo "All prerequisites are already installed" -else - echo "A prerequisites needs to be installed" - sudo yum install $needsinstall -fi - -if [ "$1" == "clear" ]; then - sudo wondershaper clear eth0 -else - echo "How much Mbps would you like to be able to be downloaded?" - read downlimit - echo "How much Mbps would you like to be able to be uploaded?" - read uplimit - - sudo wondershaper eth0 $(( $downlimit * 1024 )) $(( $uplimit * 1024 )) - echo "The limit of bandwidth of $downlimit Mbps and $uplimit Mpbs has been done" -fi diff --git a/server/restartapache b/server/restartapache deleted file mode 100755 index c1e7273..0000000 --- a/server/restartapache +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -sudo service httpd restart diff --git a/server/setuplamp b/server/setuplamp deleted file mode 100755 index b1c954b..0000000 --- a/server/setuplamp +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -sudo yum install httpd mysql mysql-server php php-mysql - -sudo /usr/bin/mysql_secure_installation - -sudo service httpd start -sudo service mysqld start - -sudo chkconfig httpd on -sudo chkconfig mysqld on diff --git a/server/updatetime b/server/updatetime deleted file mode 100755 index c3517ba..0000000 --- a/server/updatetime +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -sudo /etc/init.d/ntp stop -# dallas texas server -sudo ntpdate -u ntp.jentfoo.com -sudo /etc/init.d/ntp start diff --git a/setupbin b/setupbin index 7d3d4ab..dff0746 100755 --- a/setupbin +++ b/setupbin @@ -16,8 +16,15 @@ if ( grep -q HOME/bin/android $HOME/.bash_profile ); then echo ".bash_profile doesn't need to be patched" else - sed -i '/PATH"/ a\ PATH="$HOME/bin/android:$HOME/bin/app:$HOME/bin/server:$PATH"' $HOME/.bash_profile - echo "patched .bash_profile" + +cat << EOF >> ~/.bash_profile +# set PATH so it includes user's private bin if it exists +if [ -d "\$HOME/bin" ] ; then + PATH="\$HOME/bin:\$PATH" + PATH="\$HOME/bin/app:\$HOME/bin/server:\$PATH" +fi +EOF + fi if ( ! grep -q HOME/bin/private $HOME/.bash_profile ) && ( find $HOME/bin/private &> /dev/null ); then From f7b0972d1405628f591636a41716655bf0aea771 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 16:45:22 -0700 Subject: [PATCH 33/53] README.mkdn: update to reflect chrome os --- README.mkdn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.mkdn b/README.mkdn index a59a800..6bb615a 100644 --- a/README.mkdn +++ b/README.mkdn @@ -1,4 +1,4 @@ -Swordrune10's Redhat/Fedora Scripts +Swordrune10's Chrome OS Scripts ------------------------- From bc398337e3877758665e8a5862a2753275ce711f Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 17:43:34 -0700 Subject: [PATCH 34/53] chromeinstall: added all commands --- chromeinstall | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/chromeinstall b/chromeinstall index 7411d3b..4c573ec 100755 --- a/chromeinstall +++ b/chromeinstall @@ -13,4 +13,33 @@ # See the License for the specific language governing permissions and # limitations under the License. +github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) +cd ~ +mkdir bin +cd bin + +$github/LICENSE +$github/NOTICE +$github/README.mkdn +$github/chromeinstall +$github/repo +$github/setupbin +$github/updatebin + +mkdir app +cd app + +$github/app/gitsubmit +$github/app/mountmtp +$github/app/torrentmaker +$github/app/umountmtp + +mkdir ../server +cd ../server + +$github/server/dropboxstatus +$github/server/killback +$github/server/nitenite +$github/server/rmdropbox +$github/server/setupdropbox From 9f9e686032fcbfafe4d9b9be153e8b5cf2de8651 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 18:00:17 -0700 Subject: [PATCH 35/53] chromeinstall: chmod scripts --- chromeinstall | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/chromeinstall b/chromeinstall index 4c573ec..58f1bbe 100755 --- a/chromeinstall +++ b/chromeinstall @@ -23,23 +23,36 @@ $github/LICENSE $github/NOTICE $github/README.mkdn $github/chromeinstall +chmod +x chromeinstall $github/repo +chmod +x repo $github/setupbin +chmod +x setupbin $github/updatebin +chmod +x updatebin mkdir app cd app $github/app/gitsubmit +chmod +x gitsubmit $github/app/mountmtp +chmod +x mountmtp $github/app/torrentmaker +chmod +x torrentmaker $github/app/umountmtp +chmod +x umountmtp mkdir ../server cd ../server $github/server/dropboxstatus +chmod +x dropboxstatus $github/server/killback +chmod +x killback $github/server/nitenite +chmod +x nitenite $github/server/rmdropbox +chmod +x rmdropbox $github/server/setupdropbox +chmod +x setupdropbox From 72eef9c5cb02e5d602a825194281a2c437c1b10c Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 18:28:45 -0700 Subject: [PATCH 36/53] setupbin: added exec remount --- setupbin | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setupbin b/setupbin index dff0746..2999b5b 100755 --- a/setupbin +++ b/setupbin @@ -18,13 +18,18 @@ if ( grep -q HOME/bin/android $HOME/.bash_profile ); then else cat << EOF >> ~/.bash_profile + # set PATH so it includes user's private bin if it exists if [ -d "\$HOME/bin" ] ; then PATH="\$HOME/bin:\$PATH" PATH="\$HOME/bin/app:\$HOME/bin/server:\$PATH" fi + +# set HOME as executable +mount -io remount,exec ~ EOF +echo "patched .bash_profile" fi if ( ! grep -q HOME/bin/private $HOME/.bash_profile ) && ( find $HOME/bin/private &> /dev/null ); then From e1826b9b5aeb91687758e060b54b9d5d6dcfe6b1 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 18:31:36 -0700 Subject: [PATCH 37/53] updatebin: take over chromeinstall --- chromeinstall | 58 --------------------------------------------------- updatebin | 45 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 60 deletions(-) delete mode 100755 chromeinstall diff --git a/chromeinstall b/chromeinstall deleted file mode 100755 index 58f1bbe..0000000 --- a/chromeinstall +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Sean Donovan - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# http://www.apache.org/licenses/LICENSE-2.0 - -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) - -cd ~ -mkdir bin -cd bin - -$github/LICENSE -$github/NOTICE -$github/README.mkdn -$github/chromeinstall -chmod +x chromeinstall -$github/repo -chmod +x repo -$github/setupbin -chmod +x setupbin -$github/updatebin -chmod +x updatebin - -mkdir app -cd app - -$github/app/gitsubmit -chmod +x gitsubmit -$github/app/mountmtp -chmod +x mountmtp -$github/app/torrentmaker -chmod +x torrentmaker -$github/app/umountmtp -chmod +x umountmtp - -mkdir ../server -cd ../server - -$github/server/dropboxstatus -chmod +x dropboxstatus -$github/server/killback -chmod +x killback -$github/server/nitenite -chmod +x nitenite -$github/server/rmdropbox -chmod +x rmdropbox -$github/server/setupdropbox -chmod +x setupdropbox diff --git a/updatebin b/updatebin index f1dde50..58f1bbe 100755 --- a/updatebin +++ b/updatebin @@ -13,5 +13,46 @@ # See the License for the specific language governing permissions and # limitations under the License. -cd $(dirname $( readlink -f $0 ) ) -git pull +github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) + +cd ~ +mkdir bin +cd bin + +$github/LICENSE +$github/NOTICE +$github/README.mkdn +$github/chromeinstall +chmod +x chromeinstall +$github/repo +chmod +x repo +$github/setupbin +chmod +x setupbin +$github/updatebin +chmod +x updatebin + +mkdir app +cd app + +$github/app/gitsubmit +chmod +x gitsubmit +$github/app/mountmtp +chmod +x mountmtp +$github/app/torrentmaker +chmod +x torrentmaker +$github/app/umountmtp +chmod +x umountmtp + +mkdir ../server +cd ../server + +$github/server/dropboxstatus +chmod +x dropboxstatus +$github/server/killback +chmod +x killback +$github/server/nitenite +chmod +x nitenite +$github/server/rmdropbox +chmod +x rmdropbox +$github/server/setupdropbox +chmod +x setupdropbox From e5e5c1ee560f520d934d5e24f86758d14c2dc309 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 18:44:25 -0700 Subject: [PATCH 38/53] unsetbin: allow for a reset of .bash_profile --- unsetbin | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 unsetbin diff --git a/unsetbin b/unsetbin new file mode 100755 index 0000000..3e0578d --- /dev/null +++ b/unsetbin @@ -0,0 +1,22 @@ +#!/bin/bash +# Copyright (C) 2014 Sean Donovan + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +cat << EOF > ~/.bash_profile +# /etc/skel/.bash_profile + +# This file is sourced by bash for login shells. The following line +# runs your .bashrc and is recommended by the bash info pages. +[[ -f ~/.bashrc ]] && . ~/.bashrc +EOF From 08df104af1ca68dc6340d285f0740d09151cdfe9 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 18:47:17 -0700 Subject: [PATCH 39/53] updatebin: remove chromeinstall, add unsetbin --- updatebin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updatebin b/updatebin index 58f1bbe..e43428d 100755 --- a/updatebin +++ b/updatebin @@ -22,12 +22,12 @@ cd bin $github/LICENSE $github/NOTICE $github/README.mkdn -$github/chromeinstall -chmod +x chromeinstall $github/repo chmod +x repo $github/setupbin chmod +x setupbin +$github/unsetbin +chmod +x unsetbin $github/updatebin chmod +x updatebin From 42b6db7dbdb20f9a9cc8e58d320bda35e55240e3 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 18:49:30 -0700 Subject: [PATCH 40/53] updatebin: mkdir's change to make only if it doesnt exist --- updatebin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updatebin b/updatebin index e43428d..0cd68e2 100755 --- a/updatebin +++ b/updatebin @@ -16,7 +16,7 @@ github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) cd ~ -mkdir bin +mkdir -p bin cd bin $github/LICENSE @@ -31,7 +31,7 @@ chmod +x unsetbin $github/updatebin chmod +x updatebin -mkdir app +mkdir -p app cd app $github/app/gitsubmit @@ -43,7 +43,7 @@ chmod +x torrentmaker $github/app/umountmtp chmod +x umountmtp -mkdir ../server +mkdir -p ../server cd ../server $github/server/dropboxstatus From 4802c91ea8809f3ac2cfbf1ef34c2c6037476cbb Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 18:59:26 -0700 Subject: [PATCH 41/53] setupbin: comment out mount until i figure it out --- setupbin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupbin b/setupbin index 2999b5b..31510e7 100755 --- a/setupbin +++ b/setupbin @@ -26,7 +26,7 @@ if [ -d "\$HOME/bin" ] ; then fi # set HOME as executable -mount -io remount,exec ~ +# mount -io remount,exec ~ EOF echo "patched .bash_profile" From f462dc4748cad3c86169f1fea3af7c99b8a4e8f7 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 20:51:32 -0700 Subject: [PATCH 42/53] updatebin: moar notifies --- updatebin | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/updatebin b/updatebin index 0cd68e2..4423dc6 100755 --- a/updatebin +++ b/updatebin @@ -19,40 +19,62 @@ cd ~ mkdir -p bin cd bin +echo "Grabbing bin folder items" +echo "Grabbing LICENSE file.." $github/LICENSE +echo "Grabbing NOTICE file.." $github/NOTICE +echo "Grabbing README.mkdn file.." $github/README.mkdn +echo "Grabbing repo file.." $github/repo chmod +x repo +echo "Grabbing setupbin file.." $github/setupbin chmod +x setupbin +echo "Grabbing unsetbin file.." $github/unsetbin chmod +x unsetbin +echo "Grabbing updatebin file.." $github/updatebin chmod +x updatebin +echo "Finished bin folder items" mkdir -p app cd app +echo "Grabbing app folder items" +echo "Grabbing gitsubmit file.." $github/app/gitsubmit chmod +x gitsubmit +echo "Grabbing mountmtp file.." $github/app/mountmtp chmod +x mountmtp +echo "Grabbing torrentmaker file.." $github/app/torrentmaker chmod +x torrentmaker +echo "Grabbing umountmtp file.." $github/app/umountmtp chmod +x umountmtp +echo "Finished app folder items" mkdir -p ../server cd ../server +echo "Grabbing server folder items" +echo "Grabbing dropboxstatus file.." $github/server/dropboxstatus chmod +x dropboxstatus +echo "Grabbing killback file.." $github/server/killback chmod +x killback +echo "Grabbing nitenite file.." $github/server/nitenite chmod +x nitenite +echo "Grabbing rmdropbox file.." $github/server/rmdropbox chmod +x rmdropbox +echo "Grabbing setupdropbox file.." $github/server/setupdropbox chmod +x setupdropbox +echo "Finished server folder items" From 1a995f429829e94a55a8cf1fb65788c1a999186c Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 13 Jun 2014 20:55:04 -0700 Subject: [PATCH 43/53] updatebin: seperate the stuffs --- updatebin | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/updatebin b/updatebin index 4423dc6..28f6638 100755 --- a/updatebin +++ b/updatebin @@ -40,6 +40,8 @@ $github/updatebin chmod +x updatebin echo "Finished bin folder items" +echo "" + mkdir -p app cd app @@ -58,6 +60,8 @@ $github/app/umountmtp chmod +x umountmtp echo "Finished app folder items" +echo "" + mkdir -p ../server cd ../server From 95038cd645ed2fb7891cb33d8181f30ffaac8263 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sat, 14 Jun 2014 00:02:56 -0700 Subject: [PATCH 44/53] setupbin: sudo the mount, will work if you leave sudo without passwd --- setupbin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupbin b/setupbin index 31510e7..fa8ca1a 100755 --- a/setupbin +++ b/setupbin @@ -26,7 +26,7 @@ if [ -d "\$HOME/bin" ] ; then fi # set HOME as executable -# mount -io remount,exec ~ +sudo mount -io remount,exec ~ EOF echo "patched .bash_profile" From f8db30ea67f6932983757ab4297983e7ad780bb9 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 15 Jun 2014 00:06:00 -0700 Subject: [PATCH 45/53] updatebin: state if file will be grabbed or not --- updatebin | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/updatebin b/updatebin index 28f6638..f0f80d4 100755 --- a/updatebin +++ b/updatebin @@ -14,6 +14,7 @@ # limitations under the License. github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) +grepopt=$( echo "2>&1 | grep --color=never retrieving" ) cd ~ mkdir -p bin @@ -21,22 +22,22 @@ cd bin echo "Grabbing bin folder items" echo "Grabbing LICENSE file.." -$github/LICENSE +$github/LICENSE $grepopt echo "Grabbing NOTICE file.." -$github/NOTICE +$github/NOTICE $grepopt echo "Grabbing README.mkdn file.." -$github/README.mkdn +$github/README.mkdn $grepopt echo "Grabbing repo file.." -$github/repo +$github/repo $grepopt chmod +x repo echo "Grabbing setupbin file.." -$github/setupbin +$github/setupbin $grepopt chmod +x setupbin echo "Grabbing unsetbin file.." -$github/unsetbin +$github/unsetbin $grepopt chmod +x unsetbin echo "Grabbing updatebin file.." -$github/updatebin +$github/updatebin $grepopt chmod +x updatebin echo "Finished bin folder items" @@ -47,16 +48,16 @@ cd app echo "Grabbing app folder items" echo "Grabbing gitsubmit file.." -$github/app/gitsubmit +$github/app/gitsubmit $grepopt chmod +x gitsubmit echo "Grabbing mountmtp file.." -$github/app/mountmtp +$github/app/mountmtp $grepopt chmod +x mountmtp echo "Grabbing torrentmaker file.." -$github/app/torrentmaker +$github/app/torrentmaker $grepopt chmod +x torrentmaker echo "Grabbing umountmtp file.." -$github/app/umountmtp +$github/app/umountmtp $grepopt chmod +x umountmtp echo "Finished app folder items" @@ -67,18 +68,18 @@ cd ../server echo "Grabbing server folder items" echo "Grabbing dropboxstatus file.." -$github/server/dropboxstatus +$github/server/dropboxstatus $grepopt chmod +x dropboxstatus echo "Grabbing killback file.." -$github/server/killback +$github/server/killback $grepopt chmod +x killback echo "Grabbing nitenite file.." -$github/server/nitenite +$github/server/nitenite $grepopt chmod +x nitenite echo "Grabbing rmdropbox file.." -$github/server/rmdropbox +$github/server/rmdropbox $grepopt chmod +x rmdropbox echo "Grabbing setupdropbox file.." -$github/server/setupdropbox +$github/server/setupdropbox $grepopt chmod +x setupdropbox echo "Finished server folder items" From b525e514da59fb1eec519accaa21753924a353ca Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 15 Jun 2014 00:08:23 -0700 Subject: [PATCH 46/53] updatebin: fix grepopt --- updatebin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updatebin b/updatebin index f0f80d4..bab7f99 100755 --- a/updatebin +++ b/updatebin @@ -14,7 +14,7 @@ # limitations under the License. github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) -grepopt=$( echo "2>&1 | grep --color=never retrieving" ) +grepopt=$( echo '2>&1 | grep --color=never retrieving' ) cd ~ mkdir -p bin From 9a564464e13b887a0cb2b7e27f5167885c8d1620 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 15 Jun 2014 00:11:34 -0700 Subject: [PATCH 47/53] updatebin: try 2 for grepopt --- updatebin | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/updatebin b/updatebin index bab7f99..670c64c 100755 --- a/updatebin +++ b/updatebin @@ -22,22 +22,22 @@ cd bin echo "Grabbing bin folder items" echo "Grabbing LICENSE file.." -$github/LICENSE $grepopt +$github/LICENSE 2>&1 | grep --color=never retrieving echo "Grabbing NOTICE file.." -$github/NOTICE $grepopt +$github/NOTICE 2>&1 | grep --color=never retrieving echo "Grabbing README.mkdn file.." -$github/README.mkdn $grepopt +$github/README.mkdn 2>&1 | grep --color=never retrieving echo "Grabbing repo file.." -$github/repo $grepopt +$github/repo 2>&1 | grep --color=never retrieving chmod +x repo echo "Grabbing setupbin file.." -$github/setupbin $grepopt +$github/setupbin 2>&1 | grep --color=never retrieving chmod +x setupbin echo "Grabbing unsetbin file.." -$github/unsetbin $grepopt +$github/unsetbin 2>&1 | grep --color=never retrieving chmod +x unsetbin echo "Grabbing updatebin file.." -$github/updatebin $grepopt +$github/updatebin 2>&1 | grep --color=never retrieving chmod +x updatebin echo "Finished bin folder items" @@ -48,16 +48,16 @@ cd app echo "Grabbing app folder items" echo "Grabbing gitsubmit file.." -$github/app/gitsubmit $grepopt +$github/app/gitsubmit 2>&1 | grep --color=never retrieving chmod +x gitsubmit echo "Grabbing mountmtp file.." -$github/app/mountmtp $grepopt +$github/app/mountmtp 2>&1 | grep --color=never retrieving chmod +x mountmtp echo "Grabbing torrentmaker file.." -$github/app/torrentmaker $grepopt +$github/app/torrentmaker 2>&1 | grep --color=never retrieving chmod +x torrentmaker echo "Grabbing umountmtp file.." -$github/app/umountmtp $grepopt +$github/app/umountmtp 2>&1 | grep --color=never retrieving chmod +x umountmtp echo "Finished app folder items" @@ -68,18 +68,18 @@ cd ../server echo "Grabbing server folder items" echo "Grabbing dropboxstatus file.." -$github/server/dropboxstatus $grepopt +$github/server/dropboxstatus 2>&1 | grep --color=never retrieving chmod +x dropboxstatus echo "Grabbing killback file.." -$github/server/killback $grepopt +$github/server/killback 2>&1 | grep --color=never retrieving chmod +x killback echo "Grabbing nitenite file.." -$github/server/nitenite $grepopt +$github/server/nitenite 2>&1 | grep --color=never retrieving chmod +x nitenite echo "Grabbing rmdropbox file.." -$github/server/rmdropbox $grepopt +$github/server/rmdropbox 2>&1 | grep --color=never retrieving chmod +x rmdropbox echo "Grabbing setupdropbox file.." -$github/server/setupdropbox $grepopt +$github/server/setupdropbox 2>&1 | grep --color=never retrieving chmod +x setupdropbox echo "Finished server folder items" From 52354f920d14198f75180d11835a29ff5add6429 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 15 Jun 2014 00:12:09 -0700 Subject: [PATCH 48/53] updatebin: remove grepopt variable --- updatebin | 1 - 1 file changed, 1 deletion(-) diff --git a/updatebin b/updatebin index 670c64c..cdb061b 100755 --- a/updatebin +++ b/updatebin @@ -14,7 +14,6 @@ # limitations under the License. github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) -grepopt=$( echo '2>&1 | grep --color=never retrieving' ) cd ~ mkdir -p bin From 5e4e1bb2a784aca53b8d7921b8fe3847f55854ad Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 15 Jun 2014 00:19:33 -0700 Subject: [PATCH 49/53] Revert "updatebin: remove grepopt variable" This reverts commit 52354f920d14198f75180d11835a29ff5add6429. --- updatebin | 1 + 1 file changed, 1 insertion(+) diff --git a/updatebin b/updatebin index cdb061b..670c64c 100755 --- a/updatebin +++ b/updatebin @@ -14,6 +14,7 @@ # limitations under the License. github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) +grepopt=$( echo '2>&1 | grep --color=never retrieving' ) cd ~ mkdir -p bin From 2baebfbaea152f32d4f44cdad378a66aeb4536af Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 15 Jun 2014 00:19:49 -0700 Subject: [PATCH 50/53] Revert "updatebin: try 2 for grepopt" This reverts commit 9a564464e13b887a0cb2b7e27f5167885c8d1620. --- updatebin | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/updatebin b/updatebin index 670c64c..bab7f99 100755 --- a/updatebin +++ b/updatebin @@ -22,22 +22,22 @@ cd bin echo "Grabbing bin folder items" echo "Grabbing LICENSE file.." -$github/LICENSE 2>&1 | grep --color=never retrieving +$github/LICENSE $grepopt echo "Grabbing NOTICE file.." -$github/NOTICE 2>&1 | grep --color=never retrieving +$github/NOTICE $grepopt echo "Grabbing README.mkdn file.." -$github/README.mkdn 2>&1 | grep --color=never retrieving +$github/README.mkdn $grepopt echo "Grabbing repo file.." -$github/repo 2>&1 | grep --color=never retrieving +$github/repo $grepopt chmod +x repo echo "Grabbing setupbin file.." -$github/setupbin 2>&1 | grep --color=never retrieving +$github/setupbin $grepopt chmod +x setupbin echo "Grabbing unsetbin file.." -$github/unsetbin 2>&1 | grep --color=never retrieving +$github/unsetbin $grepopt chmod +x unsetbin echo "Grabbing updatebin file.." -$github/updatebin 2>&1 | grep --color=never retrieving +$github/updatebin $grepopt chmod +x updatebin echo "Finished bin folder items" @@ -48,16 +48,16 @@ cd app echo "Grabbing app folder items" echo "Grabbing gitsubmit file.." -$github/app/gitsubmit 2>&1 | grep --color=never retrieving +$github/app/gitsubmit $grepopt chmod +x gitsubmit echo "Grabbing mountmtp file.." -$github/app/mountmtp 2>&1 | grep --color=never retrieving +$github/app/mountmtp $grepopt chmod +x mountmtp echo "Grabbing torrentmaker file.." -$github/app/torrentmaker 2>&1 | grep --color=never retrieving +$github/app/torrentmaker $grepopt chmod +x torrentmaker echo "Grabbing umountmtp file.." -$github/app/umountmtp 2>&1 | grep --color=never retrieving +$github/app/umountmtp $grepopt chmod +x umountmtp echo "Finished app folder items" @@ -68,18 +68,18 @@ cd ../server echo "Grabbing server folder items" echo "Grabbing dropboxstatus file.." -$github/server/dropboxstatus 2>&1 | grep --color=never retrieving +$github/server/dropboxstatus $grepopt chmod +x dropboxstatus echo "Grabbing killback file.." -$github/server/killback 2>&1 | grep --color=never retrieving +$github/server/killback $grepopt chmod +x killback echo "Grabbing nitenite file.." -$github/server/nitenite 2>&1 | grep --color=never retrieving +$github/server/nitenite $grepopt chmod +x nitenite echo "Grabbing rmdropbox file.." -$github/server/rmdropbox 2>&1 | grep --color=never retrieving +$github/server/rmdropbox $grepopt chmod +x rmdropbox echo "Grabbing setupdropbox file.." -$github/server/setupdropbox 2>&1 | grep --color=never retrieving +$github/server/setupdropbox $grepopt chmod +x setupdropbox echo "Finished server folder items" From 7615dedb9257ce452b5b3d4eb5b2d5258f1aa909 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Sun, 15 Jun 2014 00:20:19 -0700 Subject: [PATCH 51/53] updatebin: try grepopt again, but remove color removal --- updatebin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updatebin b/updatebin index bab7f99..06891a6 100755 --- a/updatebin +++ b/updatebin @@ -14,7 +14,7 @@ # limitations under the License. github=$( echo "wget -Nq https://raw.githubusercontent.com/TeamKeyblade/bin_scripts/chromeos" ) -grepopt=$( echo '2>&1 | grep --color=never retrieving' ) +grepopt=$( echo '2>&1 | grep retrieving' ) cd ~ mkdir -p bin From 83ff9c36d7ff204e670d452dd024bc428b5e7994 Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 20 Jun 2014 16:46:40 -0700 Subject: [PATCH 52/53] nitenite: make sure code runs correct --- server/nitenite | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/server/nitenite b/server/nitenite index ab8598a..34c529f 100755 --- a/server/nitenite +++ b/server/nitenite @@ -14,19 +14,16 @@ # limitations under the License. main() { -clear -cd ~ echo "How long would you like the computer to sleep for?" echo "Type list to see a list of units of time supported" echo "Type exit to leave program" echo "Example = 10 hours" read decision -#if what was typed had any upper case letters convert it -#to lower case into another file and then rewrite the -#variable with the modification +#if what was typed had any upper case letters convert it +#to lower case -if ( echo $decision | grep -q [A-Z] );then +if ( echo $decision | grep -q [A-Z] );then decision=$(echo $decision | sed -e 's/\(.*\)/\L\1/') fi @@ -37,7 +34,7 @@ length=$(echo $decision | sed 's/[^a-z]*//g') #exit if; quit program immediately if told to do so, easy way to work on this script -if [ $length == "exit" ]; then +if [ "$length" == "exit" ]; then clear echo "Program Terminated" exit 0 @@ -45,7 +42,7 @@ fi #list if; type list and u get all the units in a list! amazing! -if [ $length == "list" ]; then +if [ "$length" == "list" ]; then echo "" echo "All supported units of time is:" echo "seconds, minutes, hours, days, weeks, fortnights," From 3431b6127090b097a2f00b866d6168c49cc1ad1e Mon Sep 17 00:00:00 2001 From: Sean Donovan Date: Fri, 20 Jun 2014 17:03:24 -0700 Subject: [PATCH 53/53] nitenite: whitespace and comment fixes --- server/nitenite | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server/nitenite b/server/nitenite index 34c529f..3b8a515 100755 --- a/server/nitenite +++ b/server/nitenite @@ -35,7 +35,6 @@ length=$(echo $decision | sed 's/[^a-z]*//g') #exit if; quit program immediately if told to do so, easy way to work on this script if [ "$length" == "exit" ]; then - clear echo "Program Terminated" exit 0 fi @@ -52,8 +51,7 @@ if [ "$length" == "list" ]; then fi #this checks to see if what was typed had any numbers in -#it, and if it doesnt the script will delete all unnecessary files -#and terminate early +#it, and if it doesnt the script will start over if ( ! echo $time | grep -q [0-9]); then echo "" @@ -62,8 +60,8 @@ if ( ! echo $time | grep -q [0-9]); then main fi -#the beginning of all the if statements to figure out how to calculate the results, -#it uses the unit of time specified to determine the length of the +#the beginning of all the if statements to figure out how to calculate the results, +#it uses the unit of time specified to determine the length of the #effect the user wants #seconds if; easy @@ -110,7 +108,7 @@ if [ $length == "month" ] || [ $length == "months" ]; then fi #years if; because of the calculated disaster of months i had to use the only -#one that wasnt a decimal, which is ironically the actual answer of seconds +#one that wasnt a decimal, which is ironically the actual answer of seconds #there is in a year x.x #after this it will go back to just multiplying from this