summaryrefslogtreecommitdiffstats
path: root/filehooker/root-image/krebs/bin
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-04-02 11:15:54 +0200
committermakefu <github@syntax-fehler.de>2014-04-02 11:15:54 +0200
commit732876299f4dccb4caa3a915879d2b5945bbdd42 (patch)
tree779db4d8f7cfb6223b6d47bd2f157143a48760f8 /filehooker/root-image/krebs/bin
parenteb83b606a5baadcf35353b5461d2a0e520ecba6c (diff)
filehooker is now elchOS
Diffstat (limited to 'filehooker/root-image/krebs/bin')
-rwxr-xr-xfilehooker/root-image/krebs/bin/add-reaktor-secret.sh24
-rwxr-xr-xfilehooker/root-image/krebs/bin/macid.sh2
-rwxr-xr-xfilehooker/root-image/krebs/bin/reaktor-shell.sh4
-rwxr-xr-xfilehooker/root-image/krebs/bin/refresh-shares.ship11
-rwxr-xr-xfilehooker/root-image/krebs/bin/set-hostname.sh5
-rwxr-xr-xfilehooker/root-image/krebs/bin/start-ncdc.ship23
-rwxr-xr-xfilehooker/root-image/krebs/bin/tor-get-hidden-service.sh2
-rwxr-xr-xfilehooker/root-image/krebs/bin/tor_configure_hidden_service.ship16
-rwxr-xr-xfilehooker/root-image/krebs/bin/tor_publish_ssh.ship12
-rwxr-xr-xfilehooker/root-image/krebs/bin/update-search.sh5
-rwxr-xr-xfilehooker/root-image/krebs/bin/vim_sane_defaults.ship10
11 files changed, 0 insertions, 114 deletions
diff --git a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh b/filehooker/root-image/krebs/bin/add-reaktor-secret.sh
deleted file mode 100755
index 92681449..00000000
--- a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-set -euf
-green='\e[0;32m'
-red='\e[0;31m'
-nc='\e[0m'
-black='\e[0;30m'
-
-printf "${green}Add a Reaktor Secret ${nc}\n"
-printf "${red}(no spaces in input plox)${nc}\n"
-
-nick=${1:-}
-while test -z "${nick:-}" ;do
- printf "provide Nick Name:\n"
- read nick
-done
-
-secret=${2:-}
-while test -z "${secret:-}" ;do
- printf "provide Secret:$black\n"
- read secret
-done
-
-echo "$nick $secret" >> /krebs/painload/Reaktor/admin.lst
-printf "${green}done${nc}"
diff --git a/filehooker/root-image/krebs/bin/macid.sh b/filehooker/root-image/krebs/bin/macid.sh
deleted file mode 100755
index 0fccc84b..00000000
--- a/filehooker/root-image/krebs/bin/macid.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-ip addr | grep ether | awk '{print $2}' | sort |md5sum | awk '{print $1}' | dd bs=1 count=6 2>/dev/null
diff --git a/filehooker/root-image/krebs/bin/reaktor-shell.sh b/filehooker/root-image/krebs/bin/reaktor-shell.sh
deleted file mode 100755
index 117c64f6..00000000
--- a/filehooker/root-image/krebs/bin/reaktor-shell.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-echo "IP Addresses:"
-/krebs/painload/Reaktor/commands/ips || echo "no IPs!"
-/krebs/bin/add-reaktor-secret.sh
diff --git a/filehooker/root-image/krebs/bin/refresh-shares.ship b/filehooker/root-image/krebs/bin/refresh-shares.ship
deleted file mode 100755
index 364d7758..00000000
--- a/filehooker/root-image/krebs/bin/refresh-shares.ship
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-#TODO:
-#!/usr/bin/env ship
-set -euf
-#@include filehooker
-. /krebs/lib/filehooker
-ncdc_user="hooker"
-
-share_all_partitions
-systemctl restart hddtemp.service
-exit 0
diff --git a/filehooker/root-image/krebs/bin/set-hostname.sh b/filehooker/root-image/krebs/bin/set-hostname.sh
deleted file mode 100755
index 31101a18..00000000
--- a/filehooker/root-image/krebs/bin/set-hostname.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-hostn="elch_$(/krebs/bin/macid.sh)"
-hostnamectl set-hostname "$hostn"
-hostname $hostn
-echo "$hostn" > /etc/hostname
diff --git a/filehooker/root-image/krebs/bin/start-ncdc.ship b/filehooker/root-image/krebs/bin/start-ncdc.ship
deleted file mode 100755
index 1d47bcfb..00000000
--- a/filehooker/root-image/krebs/bin/start-ncdc.ship
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env ship
-set -euf
-#@include filehooker
-. /krebs/lib/filehooker
-#@include network
-ncdc_user="hooker"
-
-useradd -m $ncdc_user ||:
-
-sudo -u $ncdc_user /usr/bin/tmux new-session -s dcpp -n ncdc -d ncdc 2>/dev/null || echo "ncdc is already running"
-
-nick=$(cat /etc/hostname)
-echo "using nick $nick"
-ncdc_configure_nick "$nick"
-sleep 1
-dc_hub="adcs://elchhub.nsupdate.info:2781"
-echo "connecting to $dc_hub"
-ncdc_configure_hub "$dc_hub" "elch"
-
-
-share_all_partitions
-
-exit 0
diff --git a/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh b/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh
deleted file mode 100755
index c9946366..00000000
--- a/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-cat /var/lib/tor/hidden_service/hostname
diff --git a/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship b/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship
deleted file mode 100755
index 1e026d26..00000000
--- a/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-#@include core
-. /krebs/lib/core
-#@include network
-. /krebs/lib/network
-#@include tor
-. /krebs/lib/tor
-
-sleep_time=5
-test -w "$torrc" || ( error "$torrc is not writable!"; exit 1 ) || exit 1
-
-configure_hidden_service
-test ! -e $hidden_service_dir/hostname && \
- info "hidden service file does not exist, restarting tor" && \
- systemctl restart tor && \
- sleep 1
diff --git a/filehooker/root-image/krebs/bin/tor_publish_ssh.ship b/filehooker/root-image/krebs/bin/tor_publish_ssh.ship
deleted file mode 100755
index 2ecee9fb..00000000
--- a/filehooker/root-image/krebs/bin/tor_publish_ssh.ship
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env ship
-#@include core
-. /krebs/lib/core
-#@include network
-. /krebs/lib/network
-#@include tor
-. /krebs/lib/tor
-
-test -w "$torrc" || ( error "$torrc is not writable!"; exit 1 ) || exit 1
-
-configure_hidden_service
-cat $hidden_service_dir/hostname | send_irc
diff --git a/filehooker/root-image/krebs/bin/update-search.sh b/filehooker/root-image/krebs/bin/update-search.sh
deleted file mode 100755
index 665f6543..00000000
--- a/filehooker/root-image/krebs/bin/update-search.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-for i in /media/vag*;do
- updatedb -l 0 -o "$i/mlocate.db" -U "$i"
-done
-echo "update complete"
diff --git a/filehooker/root-image/krebs/bin/vim_sane_defaults.ship b/filehooker/root-image/krebs/bin/vim_sane_defaults.ship
deleted file mode 100755
index fcc7ffcf..00000000
--- a/filehooker/root-image/krebs/bin/vim_sane_defaults.ship
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-#@strict
-#@include core
-. /krebs/lib/core
-#@include vim
-. /krebs/lib/vim
-#@mainifyme
-touch $vimrc
-info "configuring vim"
-vim_conf_sane_defaults