Commit 7f2dc675 authored by Carlos Remuzzi's avatar Carlos Remuzzi
Browse files

corrigiendo syntaxis

parent e81342d5
...@@ -26,7 +26,7 @@ main() { ...@@ -26,7 +26,7 @@ main() {
# AP_NAME es necesario solo si se quiere usar Network Manager # AP_NAME es necesario solo si se quiere usar Network Manager
# para la conexion automatica al AP wifi # para la conexion automatica al AP wifi
if [ -n "$AP_NAME" ] ;then if [ -n "$AP_NAME" ] ;then
if [ which nmcli >/dev/null 2>&1 ] ; then if which nmcli >/dev/null 2>&1 ; then
invocar_nmcli invocar_nmcli
else else
echo "utilizando conexion manual" echo "utilizando conexion manual"
...@@ -80,13 +80,12 @@ main() { ...@@ -80,13 +80,12 @@ main() {
pacmd unload-module module-null-sink pacmd unload-module module-null-sink
if [ -n "$AP_NAME" ] ;then if [ -n "$AP_NAME" ] ;then
if [ which nmcli >/dev/null 2>&1 ] ; then if which nmcli >/dev/null 2>&1 ; then
nmcli con down $AP_NAME nmcli con down $AP_NAME
else else
echo "Por favor desconectarse de $AP_NAME" echo "Por favor desconectarse de $AP_NAME"
fi fi
fi fi
fi fi
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment