diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 0956c9e3..b9eded18 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -314,17 +314,7 @@ function install_tox_client { return fi - ${PROJECT_NAME}-mesh-install -f tox_client - if [ ! "$?" = "0" ]; then - echo $'Could not install Tox client' - exit 67248 - fi - - # initial setup of username - #su -c "echo 'n - #/nick $MY_USERNAME - #/exit - #' | $TOXIC_FILE -d" - $MY_USERNAME + mesh_tox_client echo 'install_tox_client' >> $COMPLETION_FILE } @@ -471,6 +461,11 @@ EOF } function mesh_tox_avahi { + mesh_tox_avahi_prefix='' + if [ $rootdir ]; then + mesh_tox_avahi_prefix="chroot \"$rootdir\"" + fi + if [ ! -d $rootdir/etc/avahi ]; then echo $'tox_avahi: avahi is not installed' exit 87359 @@ -491,7 +486,7 @@ function mesh_tox_avahi { exit 768352 fi - chroot "$rootdir" /bin/bash -x <