diff --git a/zlibs/helpers b/zlibs/helpers index d94d056..9019586 100644 --- a/zlibs/helpers +++ b/zlibs/helpers @@ -288,6 +288,6 @@ silly() { "god is porco" "A million hamsters are spinning their wheels right now" ) - local rnd=$(shuf -i1-30 -n 1) + local rnd=$(shuf -i1-$#funneh -n 1) act "${funneh[$rnd]}" ; [[ $arg1 = sleep ]] && sleep $arg2 } diff --git a/zlibs/sysconf b/zlibs/sysconf index 0e242d8..f88b116 100644 --- a/zlibs/sysconf +++ b/zlibs/sysconf @@ -66,8 +66,8 @@ fe02::1 ip6-allrouters EOF } -conf_print_networkifaces() { - fn conf_print_networkifaces +conf_print_netifaces() { + fn conf_print_netifaces cat < $R/dist/${vm_name}.box.sha sha256sum $R/dist/${vm_name}.${imageformat} > $R/dist/${vm_name}.${imageformat}.sha - # TODO: XXX: cleanup vagrant/virtualbox leftovers + notice "cleaning up virtualbox leftovers" + pushd "$workdir" + VBoxManage unregistervm "$vmname" --delete + rm -f metadata.json Vagrantfile + rm -rf .vagrant + popd + rm -rf "$workdir" + rm -rf "$HOME/VirtualBox VMs/vmsdk" + notice "done!" ls -1 $R/dist }