#!/bin/bash export TEXTDOMAINDIR="/usr/share/locale" export TEXTDOMAIN=big-kernel # 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=$"Instalador/Removedor de Kernel" bcc_description=$"Caso não saiba o que está fazendo, peça ajuda no fórum BigLinux." # 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=$"15/07/2017" bcc_about_url_code=$"https://github.com/biglinux/bigkernel" bcc_about_url_project=$"https://www.biglinux.com.br" # Print header in screen bcc_header # Import tweaks for theme echo '' id="$id" name="$name" option="$option" ################ # End of create new remaster folder ################ ############### # Start Content echo '' echo '
' echo '' OLDIFS=$IFS IFS=$'\n' rm -f /tmp/bigKernelGuiInstall.txt for i in $(echo "$package" | sed 's|;|\n|g'); do echo "$i" >> /tmp/bigKernelGuiInstall.txt echo "$i" | sed 's|image|headers|g;s|-unsigned||g' >> /tmp/bigKernelGuiInstall.txt if [ "$(echo "$i" | grep -e "generic" -e "lowlatency")" != "" ]; then echo "$i" | sed 's|image|tools|g;s|-unsigned||g' >> /tmp/bigKernelGuiInstall.txt fi #if [ "$(echo "$i" | grep "xanmod")" != "" ]; then # echo "$i" | sed 's|image|firmware-image|g;s|-unsigned||g' >> /tmp/bigKernelGuiInstall.txt #fi # Fix remove header and images from Ubuntu if [ "$(echo "$i" | sed 's|image|headers|g;s|-unsigned||g' | grep -e "generic" -e "lowlatency")" != "" ]; then echo "$i" | sed 's|image|headers|g;s|-unsigned||g' | sed 's|-generic||g;s|-lowlatency||g' >> /tmp/bigKernelGuiInstall.txt echo "$i" | sed 's|image|modules|g;s|-unsigned||g' >> /tmp/bigKernelGuiInstall.txt fi # Fix remove header deepin if [ "$(echo "$i" | sed 's|image|headers|g;s|-unsigned||g' | sed 's|-amd64|-common|g;s|-unsigned||g;s|rt-common|common-rt|g' | grep "header" | grep "deepin")" != "" ]; then echo "$i" | sed 's|image|headers|g;s|-unsigned||g' | sed 's|-amd64|-common|g;s|-unsigned||g;s|rt-common|common-rt|g' >> /tmp/bigKernelGuiInstall.txt fi done IFS=$OLDIFS echo ""$"Confirme se deseja prosseguir com as alterações a seguir:" "

" install="$(grep " install$" /tmp/bigKernelGuiInstall.txt | sed 's| install$|
|g')" uninstall="$(grep " uninstall$" /tmp/bigKernelGuiInstall.txt | sed 's| uninstall$|
|g')" if [ "$package" = "" ]; then echo $"Nenhuma alteração marcada." else if [ "$install" != "" ]; then echo '' $"Instalar:" '
' "$install" '

' fi if [ "$uninstall" != "" ]; then echo '' $"Remover:" '
' "$uninstall" '

' fi fi echo '

' echo '
' ################### # Close content div echo '' ############## # Start footer echo '' echo '' ######### # The end echo ''