diff options
author | makefu <github@syntax-fehler.de> | 2014-04-27 18:18:08 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-04-27 18:18:08 +0200 |
commit | 95fbba75246cf1b5115bc5493d3119f9ea91221e (patch) | |
tree | cca50d644839abdf40947d47b9f75220e5d78f63 /ship/lib/filehooker | |
parent | aa4b1772353ddf520b210bb1a692ce1b604cba23 (diff) |
update things
Diffstat (limited to 'ship/lib/filehooker')
-rw-r--r-- | ship/lib/filehooker | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ship/lib/filehooker b/ship/lib/filehooker index 3c881f91..72be751a 100644 --- a/ship/lib/filehooker +++ b/ship/lib/filehooker @@ -13,7 +13,6 @@ ncdc_configure_netshare(){ rnd=`hexdump -n 2 -e '/2 "%u"' /dev/urandom` rnd_name="${2:-share_$rnd}" info "adding share" - (echo "/share $rnd_name $1") | ncdc_config } @@ -32,11 +31,12 @@ ncdc_configure_hub(){ echo "/hset autoconnect true") | ncdc_config } - -ncdc_install(){ +ncdc_download(){ install_dir="$(dirname "${ncdc_bin}")" info "installing ncdc to $install_dir" curl http://dev.yorhel.nl/download/ncdc-linux-x86_64-1.19.tar.gz | tar xz -C "$install_dir" +} +ncdc_install(){ useradd -m $ncdc_user ||: } |