#!/bin/bash #Control Center for BigLinux # #Authors: # Bruno Goncalves Araujo # #License: GPLv2 or later ################################################# . /usr/share/bigcontrolcenter/default/theme-categories.sh.htm #Translation export TEXTDOMAINDIR="/usr/share/locale-langpack" export TEXTDOMAIN=bigcontrolcenter-internet-bigconnect echo ' ' title=$"BigConnect" apply=$"Aplicar" close=$"Sair" #title echo "$title" #header open_header echo "$title" '
' $"Gerenciador de conexao alternativo." close_header #body #Confere se o resolv.conf esta desbloqueado bigconnect --clear-interface $p_interface #################### ### Wireless #################### if [ "$p_connect" = "wireless" ]; then if [ "$p_pass" = "off" ]; then bigconnect --no-password $p_interface $p_essid 2> /dev/null > /dev/null & fi if [ "$p_pass" = "wpa" ]; then bigconnect --wpa-password $p_interface $p_essid $p_password 2> /dev/null > /dev/null & fi if [ "$p_pass" = "wep" ]; then bigconnect --wep-password $p_interface $p_essid $p_password 2> /dev/null > /dev/null & fi fi #################### ### Connect #################### sleep 2 if [ "$p_dhcp" = "dhcp" ]; then bigconnect --ip-dhcp $p_interface 2> /dev/null > /dev/null & else bigconnect --ip-add $p_interface $p_ip $p_netmask $p_gateway $p_dns1 $p_dns2 2> /dev/null > /dev/null & fi sleep 2 bigconnect --enable-autostart echo '
' echo "




" echo $"Configuracao aplicada." echo "
"