diff options
author | makefu <root@pigstarter.de> | 2014-03-09 23:07:05 +0100 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2014-03-09 23:07:05 +0100 |
commit | 0f58a42f4442afc84534c866bf765bab2735173f (patch) | |
tree | 1f8914aa9d13454e2cd241502b12692b01ec495a /ship/src | |
parent | 0970f673456cf8bef932aef048bb89f6178eb104 (diff) |
ship: update filehooker install
Diffstat (limited to 'ship/src')
-rwxr-xr-x | ship/src/filehooker_install | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/ship/src/filehooker_install b/ship/src/filehooker_install index 108f2421..1b9717f1 100755 --- a/ship/src/filehooker_install +++ b/ship/src/filehooker_install @@ -1,8 +1,15 @@ #/bin/sh +#@info #@strict #@include core +## colored logging #@include color #@include network + +## for tor hidden service +#@include tor + +## for ncdc #@include filehooker pass=lolwut.aidsballs admin=pimp @@ -66,8 +73,9 @@ info "generating configs" genfstab -U -p /mnt > /mnt/etc/fstab info "beginning chroot!" +########### BEGIN CHROOT ##### arch-chroot /mnt << EOF - +#@strict msg() { printf "\$*\n" >&2; } info() { msg "$green\$*$nc"; } error() { msg "$green\$*$nc"; } @@ -102,17 +110,14 @@ grub-mkconfig > /boot/grub/grub.cfg 2>/dev/null useradd -m hooker exit EOF +######## END CHROOT ########## info "configuring tor" torrc=/mnt/etc/tor/torrc hidden_service_dir=/var/lib/tor/hidden_service/ -#@include tor configure_hidden_service info "publishing hidden service address" cat $hidden_service_dir/hostname | send_irc info "configure ncdc" -ncdc_install -netshare= -dc_hub=adcs://elch.nsupdate.info:2781 -configure_ncdc +curl conf.krebsco.de/filehooker_configure_ncdc | arch-chroot /mnt info "We're all done, simply reboot!" |