Explorar el Código

Use network-manager

Bob Mottram hace 9 años
padre
commit
c3053c4c6f
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      src/freedombone-client

+ 4
- 4
src/freedombone-client Ver fichero

104
   echo '    if [ -f /bin/systemctl ]; then' >> $babel_script
104
   echo '    if [ -f /bin/systemctl ]; then' >> $babel_script
105
   echo '        systemctl restart networking' >> $babel_script
105
   echo '        systemctl restart networking' >> $babel_script
106
   echo '    else' >> $babel_script
106
   echo '    else' >> $babel_script
107
-  echo '        service networking restart' >> $babel_script
107
+  echo '        service network-manager restart' >> $babel_script
108
   echo '    fi' >> $babel_script
108
   echo '    fi' >> $babel_script
109
   echo '    exit 1' >> $babel_script
109
   echo '    exit 1' >> $babel_script
110
   echo 'fi' >> $babel_script
110
   echo 'fi' >> $babel_script
112
   echo 'if [ -f /bin/systemctl ]; then' >> $babel_script
112
   echo 'if [ -f /bin/systemctl ]; then' >> $babel_script
113
   echo '    systemctl stop networking' >> $babel_script
113
   echo '    systemctl stop networking' >> $babel_script
114
   echo 'else' >> $babel_script
114
   echo 'else' >> $babel_script
115
-  echo '    service networking stop' >> $babel_script
115
+  echo '    service network-manager stop' >> $babel_script
116
   echo 'fi' >> $babel_script
116
   echo 'fi' >> $babel_script
117
   echo 'ifconfig $IFACE down' >> $babel_script
117
   echo 'ifconfig $IFACE down' >> $babel_script
118
   echo -n 'iwconfig $IFACE mode ad-hoc channel ' >> $babel_script
118
   echo -n 'iwconfig $IFACE mode ad-hoc channel ' >> $babel_script
166
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
166
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
167
   echo '        systemctl stop networking' >> $batman_script
167
   echo '        systemctl stop networking' >> $batman_script
168
   echo '    else' >> $batman_script
168
   echo '    else' >> $batman_script
169
-  echo '        service networking stop' >> $batman_script
169
+  echo '        service network-manager stop' >> $batman_script
170
   echo '    fi' >> $batman_script
170
   echo '    fi' >> $batman_script
171
   echo '    sleep 5' >> $batman_script
171
   echo '    sleep 5' >> $batman_script
172
   echo '' >> $batman_script
172
   echo '' >> $batman_script
229
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
229
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
230
   echo '        systemctl restart networking' >> $batman_script
230
   echo '        systemctl restart networking' >> $batman_script
231
   echo '    else' >> $batman_script
231
   echo '    else' >> $batman_script
232
-  echo '        service networking restart' >> $batman_script
232
+  echo '        service network-manager restart' >> $batman_script
233
   echo '    fi' >> $batman_script
233
   echo '    fi' >> $batman_script
234
   echo '}' >> $batman_script
234
   echo '}' >> $batman_script
235
   echo '' >> $batman_script
235
   echo '' >> $batman_script