#!/bin/bash export TEXTDOMAINDIR="/usr/share/locale" export TEXTDOMAIN=sambasearch # Don't group windows xprop -id $(xprop -root '\t$0' _NET_ACTIVE_WINDOW | cut -f 2) -f WM_CLASS 8s -set WM_CLASS "$$" # Import BigControlCenter base modules / Importa os módulos básicos do BigControlCenter # That's include jquery and materialize / Isso inclui o jquery e o materialize # http://materializecss.com/ . /usr/share/bigbashview/bcc/shell/base.sh #Title/Description variables bcc_title=$"Procurar compartilhamentos" bcc_description=$"Localiza compartilhamentos na rede (Windows ou Samba)." # To disable logo use: bcc_logo="no" bcc_logo="logo.png" # About variables # To disable about use: bcc_about="no" bcc_about="yes" bcc_about_license=$"GPL v2 or greater" bcc_about_by=$"Bruno Gonçalves" bcc_about_release_date=$"01/08/2019" bcc_about_url_code=$"https://github.com/biglinux/sambasearch" bcc_about_url_project=$"https://www.biglinux.com.br" # Print header in screen bcc_header echo '
' if [ "$nt1" = "0" ]; then sed -i 's|client max protocol = NT1||g' ~/.smb/smb.conf echo '
' fi if [ "$nt1" = "1" ]; then echo 'client max protocol = NT1' >> ~/.smb/smb.conf echo '
' fi ############### # Start Content echo '
' echo $"Usuário" "' echo $"Senha" "' echo '
' #if [ "$(grep "client max protocol = NT1" ~/.smb/smb.conf)" != "" ]; then # echo '' #else # echo '' #fi #echo '' #echo $"Forçar o uso do protocolo NT1." '' echo '
' echo $"*A maioria dos servidores precisa de login e senha para listar os compartilhamentos disponíveis, deixe em branco para efetuar uma busca anônima." '
' ################### # Close content div echo '' echo '
' ############## # Start footer echo '
' echo ' '