Selaa lähdekoodia

Initial configuration of the tox client

Bob Mottram 9 vuotta sitten
vanhempi
commit
c30911852e
2 muutettua tiedostoa jossa 19 lisäystä ja 2 poistoa
  1. 4
    0
      src/freedombone
  2. 15
    2
      src/freedombone-client

+ 4
- 0
src/freedombone Näytä tiedosto

@@ -8323,6 +8323,10 @@ function install_tox_client {
8323 8323
       exit 74872
8324 8324
   fi
8325 8325
   make install
8326
+  su -c 'echo "n
8327
+/nick $MY_USERNAME
8328
+/exit
8329
+" | /usr/bin/toxic -d' - $MY_USERNAME
8326 8330
 
8327 8331
   echo 'install_tox_client' >> $COMPLETION_FILE
8328 8332
 }

+ 15
- 2
src/freedombone-client Näytä tiedosto

@@ -107,7 +107,14 @@ function mesh_babel {
107 107
   if [ ! -f /tmp/meshtype ]; then
108 108
       sudo apt-get -y install babeld
109 109
       sudo apt-get -y install irssi mumble
110
-      sudo apt-get -y install toxic
110
+      if [ ! -f /usr/bin/toxic ]; then
111
+          sudo apt-get -y install toxic
112
+          echo "n
113
+/nick $USER
114
+/exit
115
+" | /usr/bin/toxic -d
116
+      fi
117
+
111 118
       CURR_DIR=$(pwd)
112 119
       if [ ! -f ~/develop/toxid ]; then
113 120
           if [ ! -f ~/develop ]; then
@@ -206,7 +213,13 @@ function mesh_batman {
206 213
       sudo apt-get -y install python-dev libevent-dev ebtables python-pip
207 214
       sudo apt-get -y install wireless-tools rfkill
208 215
       sudo apt-get -y install irssi mumble
209
-      sudo apt-get -y install toxic
216
+      if [ ! -f /usr/bin/toxic ]; then
217
+          sudo apt-get -y install toxic
218
+          echo "n
219
+/nick $USER
220
+/exit
221
+" | /usr/bin/toxic -d
222
+      fi
210 223
   fi
211 224
 
212 225
   batman_script=/tmp/batman