From 053094e69e4d7ea1067cb71fc7120a323eacfa14 Mon Sep 17 00:00:00 2001 From: mollusk Date: Sun, 28 Oct 2018 22:21:33 -0700 Subject: [PATCH 1/6] New Config: Disable UAS for external storage devices Former-commit-id: 68f550e5e2bf0591837dd45a291770130ec5d3ba Former-commit-id: abfcbea459c30699f8cc3caa8294c2f9ccbcd6b4 --- ignore_uas.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 ignore_uas.conf diff --git a/ignore_uas.conf b/ignore_uas.conf new file mode 100644 index 0000000..605ab7c --- /dev/null +++ b/ignore_uas.conf @@ -0,0 +1,2 @@ +# /etc/modprobe.d/ignore_uas.conf +options usb-storage quirks=0bc2:3323:u From 335430b358e8be2294be320b8cd7ca4c7765cdd8 Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 13 Nov 2018 03:27:40 -0700 Subject: [PATCH 5/6] symlinker.sh: update julia to 1.0.2 Former-commit-id: ac178b34517a89f1a2c4d195d10b68b5eb070b30 Former-commit-id: 1b42341e3af2370dccabe092db09be3ca4421198 --- symlinker.sh | 2 +- symlinker.sh~ | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+), 1 deletion(-) create mode 100755 symlinker.sh~ diff --git a/symlinker.sh b/symlinker.sh index 97aa46e..1db8d8f 100755 --- a/symlinker.sh +++ b/symlinker.sh @@ -5,7 +5,7 @@ linkDir="/usr/local/bin" function juliaLang(){ name="julia" - version="0.6.3" + version="1.0.2" linkDir="${linkDir}" if [ ! -f "${linkDir}/${name}" ];then diff --git a/symlinker.sh~ b/symlinker.sh~ new file mode 100755 index 0000000..1db8d8f --- /dev/null +++ b/symlinker.sh~ @@ -0,0 +1,116 @@ +#!/bin/bash + +linkDir="/usr/local/bin" + + +function juliaLang(){ + name="julia" + version="1.0.2" + linkDir="${linkDir}" + + if [ ! -f "${linkDir}/${name}" ];then + printf "\nLinking $(pwd)/${name}-${version}/bin/${name} to ${linkDir}\n" + ln -s $(pwd)/${name}-${version}/bin/${name} ${linkDir}/${name} + else + printf "\n${name} exists in ${linkDir}\n" + fi +} + +function idd(){ + name="idd" + linkDir="${linkDir}" + + if [ ! -f "${linkDir}/${name}" ];then + printf "\nLinking ${pwd}/${name} to ${linkDir}\n" + ln -s $(pwd)/${name}.sh ${linkDir}/${name} + else + printf "${name} already exists in ${linkDir}\n" + fi + + +} + +function loadsshkeys(){ + name="loadsshkeys" + linkDir="${linkDir}" + + if [ ! -f "${linkDir}/${name}" ];then + printf "\nLinking ${pwd}/${name} to ${linkDir}\n" + ln -s $(pwd)/${name}.sh ${linkDir}/${name} + else + printf "${name} already exists in ${linkDir}\n" + fi + + +} + +function mic(){ + name="staticmic" + linkDir="${linkDir}" + + if [ ! -f "${linkDir}/${name}" ];then + printf "\nLinking ${pwd}/${name} to ${linkDir}\n" + ln -s $(pwd)/${name}.sh ${linkDir}/${name} + else + printf "${name} already exists in ${linkDir}\n" + fi + + +} + +function svc(){ + name="svc" + linkDir="${linkDir}" + + if [ ! -f "${linkDir}/${name}" ];then + printf "\nLinking ${pwd}/${name} to ${linkDir}\n" + ln -s $(pwd)/${name}.sh ${linkDir}/${name} + else + printf "${name} already exists in ${linkDir}\n" + fi +} + +function trb(){ + name="trb" + linkDir="${linkDir}" + + if [ ! -f "${linkDir}/${name}" ];then + printf "\nLinking ${pwd}/${name} to ${linkDir}\n" + ln -s $(pwd)/${name}.sh ${linkDir}/${name} + else + printf "${name} already exists in ${linkDir}\n" + fi + + +} + +case "${1}" in + + -r | --remove ) + rm -v ${linkDir}/${2};; + julia ) + juliaLang;; + + idd ) + idd;; + + loadsshkeys) + loadsshkeys + + ;; + + svc ) + svc;; + + mic ) + mic;; + + trb) + trb;; + + test ) + echo ${linkDir};; + * ) printf "\n${0} \n" + ;; + +esac From 0c93046fc15c10012c31e3c4fce3a0c47a6c65c7 Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 13 Nov 2018 03:45:31 -0700 Subject: [PATCH 6/6] symlinker.sh: change linkdir to /usr/bin Former-commit-id: 0f85ff2d1107acfe934bf2228fbe018e2b39045a Former-commit-id: b009034da1e221757d83efd341b5aaaad8cdb10a --- symlinker.sh | 2 +- symlinker.sh~ | 116 -------------------------------------------------- 2 files changed, 1 insertion(+), 117 deletions(-) delete mode 100755 symlinker.sh~ diff --git a/symlinker.sh b/symlinker.sh index 1db8d8f..5456648 100755 --- a/symlinker.sh +++ b/symlinker.sh @@ -1,6 +1,6 @@ #!/bin/bash -linkDir="/usr/local/bin" +linkDir="/usr/bin" function juliaLang(){ diff --git a/symlinker.sh~ b/symlinker.sh~ deleted file mode 100755 index 1db8d8f..0000000 --- a/symlinker.sh~ +++ /dev/null @@ -1,116 +0,0 @@ -#!/bin/bash - -linkDir="/usr/local/bin" - - -function juliaLang(){ - name="julia" - version="1.0.2" - linkDir="${linkDir}" - - if [ ! -f "${linkDir}/${name}" ];then - printf "\nLinking $(pwd)/${name}-${version}/bin/${name} to ${linkDir}\n" - ln -s $(pwd)/${name}-${version}/bin/${name} ${linkDir}/${name} - else - printf "\n${name} exists in ${linkDir}\n" - fi -} - -function idd(){ - name="idd" - linkDir="${linkDir}" - - if [ ! -f "${linkDir}/${name}" ];then - printf "\nLinking ${pwd}/${name} to ${linkDir}\n" - ln -s $(pwd)/${name}.sh ${linkDir}/${name} - else - printf "${name} already exists in ${linkDir}\n" - fi - - -} - -function loadsshkeys(){ - name="loadsshkeys" - linkDir="${linkDir}" - - if [ ! -f "${linkDir}/${name}" ];then - printf "\nLinking ${pwd}/${name} to ${linkDir}\n" - ln -s $(pwd)/${name}.sh ${linkDir}/${name} - else - printf "${name} already exists in ${linkDir}\n" - fi - - -} - -function mic(){ - name="staticmic" - linkDir="${linkDir}" - - if [ ! -f "${linkDir}/${name}" ];then - printf "\nLinking ${pwd}/${name} to ${linkDir}\n" - ln -s $(pwd)/${name}.sh ${linkDir}/${name} - else - printf "${name} already exists in ${linkDir}\n" - fi - - -} - -function svc(){ - name="svc" - linkDir="${linkDir}" - - if [ ! -f "${linkDir}/${name}" ];then - printf "\nLinking ${pwd}/${name} to ${linkDir}\n" - ln -s $(pwd)/${name}.sh ${linkDir}/${name} - else - printf "${name} already exists in ${linkDir}\n" - fi -} - -function trb(){ - name="trb" - linkDir="${linkDir}" - - if [ ! -f "${linkDir}/${name}" ];then - printf "\nLinking ${pwd}/${name} to ${linkDir}\n" - ln -s $(pwd)/${name}.sh ${linkDir}/${name} - else - printf "${name} already exists in ${linkDir}\n" - fi - - -} - -case "${1}" in - - -r | --remove ) - rm -v ${linkDir}/${2};; - julia ) - juliaLang;; - - idd ) - idd;; - - loadsshkeys) - loadsshkeys - - ;; - - svc ) - svc;; - - mic ) - mic;; - - trb) - trb;; - - test ) - echo ${linkDir};; - * ) printf "\n${0} \n" - ;; - -esac