-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from vcatafesta/main
Refatorado
- Loading branch information
Showing
21 changed files
with
2,515 additions
and
1,660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,56 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
#shellcheck disable=SC2155,SC2034 | ||
#shellcheck source=/dev/null | ||
|
||
#Translation | ||
export TEXTDOMAINDIR="/usr/share/locale" | ||
export TEXTDOMAIN=bigcontrolcenter | ||
# usr/bin/big-welcome | ||
# Description: Control Center to help usage of BigLinux | ||
# | ||
# Created: 2022/02/28 | ||
# Altered: 2023/08/05 | ||
# | ||
# Copyright (c) 2023-2023, Vilmar Catafesta <vcatafesta@gmail.com> | ||
# 2022-2023, Bruno Gonçalves <www.biglinux.com.br> | ||
# 2022-2023, Rafael Ruscher <rruscher@gmail.com> | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
cd /usr/share/bigbashview/bcc/apps/big-welcome/ | ||
APP="${0##*/}" | ||
_VERSION_="1.0.0-20230805" | ||
BOOTLOG="/tmp/bigcontrolcenter-$(date +"%d%m%Y").log" | ||
LOGGER='/dev/tty8' | ||
LIBRARY=${LIBRARY:-'/usr/share/bigbashview/bcc/shell'} | ||
[[ -f "${LIBRARY}/bcclib.sh" ]] && source "${LIBRARY}/bcclib.sh" | ||
|
||
bigbashview -s 1000x660 main.sh.htm -n $"Introdução ao BigLinux" -i big-logo.png | ||
function sh_config { | ||
#Translation | ||
export TEXTDOMAINDIR="/usr/share/locale" | ||
export TEXTDOMAIN=bigcontrolcenter | ||
} | ||
|
||
function sh_main { | ||
cmdlogger cd /usr/share/bigbashview/bcc/apps/big-welcome/ || return 1 | ||
bigbashview -s 1000x660 main.sh.htm -n $"Introdução ao BigLinux" -i big-logo.png | ||
} | ||
|
||
#sh_debug | ||
sh_config | ||
sh_main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.