added proper headers to source files
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Error management functions
|
||||
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Exit with error
|
||||
function die()
|
||||
{
|
||||
@@ -63,6 +70,7 @@ function backtrace
|
||||
echo "=============================="
|
||||
}
|
||||
|
||||
# Test and exit if not root (or any UID 0 user)
|
||||
check_root()
|
||||
{
|
||||
[[ $NO_ROOT_CHECK == true ]] && return 0
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Some display functions and defines color codes
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Standard 16 colors display declaration
|
||||
export DEFAULTFG="\e[0;39m"
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# File manipulation function
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Define normalised time display, filename friendly
|
||||
stdtime()
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
# Fonctions de gestion de paquets
|
||||
# ------------------------------------------------------------------------------
|
||||
# Package manager integration
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Mise à jour de la base de donnée
|
||||
# Upgrade package database
|
||||
pkgupdt()
|
||||
{
|
||||
prnt I "Mise à jour de la liste des paquets..."
|
||||
@@ -23,7 +30,7 @@ pkginst()
|
||||
}
|
||||
export -f pkginst
|
||||
|
||||
# Mise à jour
|
||||
# Upgrade
|
||||
pkgupgd()
|
||||
{
|
||||
prnt I "Application de la mise à jours du système..."
|
||||
@@ -31,7 +38,7 @@ pkgupgd()
|
||||
}
|
||||
export -f pkgupgd
|
||||
|
||||
# Désinstallation
|
||||
# Uninstallation
|
||||
pkgrem()
|
||||
{
|
||||
prnt I "Désinstallation de paquets..."
|
||||
@@ -46,7 +53,7 @@ pkgrem()
|
||||
}
|
||||
export -f pkgrem
|
||||
|
||||
# Désinstallation du superflu
|
||||
# Cleanup
|
||||
pkgautorem()
|
||||
{
|
||||
prnt I "Désinstallation de paquets superflus..."
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Services manipulation functions
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Syntax exec_serv svcname command
|
||||
exec_serv()
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Base support function
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Display help
|
||||
disp_help()
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Base functions
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
# https://opensource.org/licenses/BSD-3-Clause
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
read_commandline()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user