From 90b99eafa94d9ce4fb4b6eccb37f95a7b19ee8a4 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Sun, 19 Apr 2026 11:49:29 +0200 Subject: [PATCH] =?utf8?q?Zako=C5=84czono=20tworzenie=20plik=C3=B3w=20podr?= =?utf8?q?=C4=99cznika,=20wprowadzono=20strukrur=C4=99=20katalogow=C4=85?= =?utf8?q?=20pozwalaj=C4=85c=C4=85=20na=20u=C5=82atwienie=20instalacji.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- immudex-branch => bin/immudex-branch | 0 .../immudex-import-gpgkeys | 0 .../immudex-import-sshkeys | 0 immudex-padlock => bin/immudex-padlock | 0 immudex-run => bin/immudex-run | 0 .../immudex-secured-firefox | 0 .../immudex-secured-librewolf | 0 bin/immudex-version | 39 +++++++++++++++ library.sh => bin/library.sh | 41 ++++++++++++++++ dependencies.txt | 1 - immudex-version | 4 -- immudex-branch.1 => man/immudex-branch.1 | 0 {hostname => man}/immudex-hostname.1 | 0 .../immudex-import-gpgkeys.1 | 0 .../immudex-import-sshkeys.1 | 0 immudex-install.1 => man/immudex-install.1 | 0 immudex-padlock.1 => man/immudex-padlock.1 | 0 immudex-run.1 => man/immudex-run.1 | 0 .../immudex-secured-firefox.1 | 0 .../immudex-secured-librewolf.1 | 0 immudex-upgrade.1 => man/immudex-upgrade.1 | 0 man/immudex-version.1 | 41 ++++++++++++++++ man/library.sh.1 | 49 +++++++++++++++++++ {hostname => misc}/immudex-hostname.service | 0 {hostname => sbin}/immudex-hostname | 0 immudex-install => sbin/immudex-install | 0 immudex-upgrade => sbin/immudex-upgrade | 0 27 files changed, 170 insertions(+), 5 deletions(-) rename immudex-branch => bin/immudex-branch (100%) rename immudex-import-gpgkeys => bin/immudex-import-gpgkeys (100%) rename immudex-import-sshkeys => bin/immudex-import-sshkeys (100%) rename immudex-padlock => bin/immudex-padlock (100%) rename immudex-run => bin/immudex-run (100%) rename immudex-secured-firefox => bin/immudex-secured-firefox (100%) rename immudex-secured-librewolf => bin/immudex-secured-librewolf (100%) create mode 100755 bin/immudex-version rename library.sh => bin/library.sh (51%) delete mode 100644 dependencies.txt delete mode 100755 immudex-version rename immudex-branch.1 => man/immudex-branch.1 (100%) rename {hostname => man}/immudex-hostname.1 (100%) rename immudex-import-gpgkeys.1 => man/immudex-import-gpgkeys.1 (100%) rename immudex-import-sshkeys.1 => man/immudex-import-sshkeys.1 (100%) rename immudex-install.1 => man/immudex-install.1 (100%) rename immudex-padlock.1 => man/immudex-padlock.1 (100%) rename immudex-run.1 => man/immudex-run.1 (100%) rename immudex-secured-firefox.1 => man/immudex-secured-firefox.1 (100%) rename immudex-secured-librewolf.1 => man/immudex-secured-librewolf.1 (100%) rename immudex-upgrade.1 => man/immudex-upgrade.1 (100%) create mode 100644 man/immudex-version.1 create mode 100644 man/library.sh.1 rename {hostname => misc}/immudex-hostname.service (100%) rename {hostname => sbin}/immudex-hostname (100%) rename immudex-install => sbin/immudex-install (100%) rename immudex-upgrade => sbin/immudex-upgrade (100%) diff --git a/immudex-branch b/bin/immudex-branch similarity index 100% rename from immudex-branch rename to bin/immudex-branch diff --git a/immudex-import-gpgkeys b/bin/immudex-import-gpgkeys similarity index 100% rename from immudex-import-gpgkeys rename to bin/immudex-import-gpgkeys diff --git a/immudex-import-sshkeys b/bin/immudex-import-sshkeys similarity index 100% rename from immudex-import-sshkeys rename to bin/immudex-import-sshkeys diff --git a/immudex-padlock b/bin/immudex-padlock similarity index 100% rename from immudex-padlock rename to bin/immudex-padlock diff --git a/immudex-run b/bin/immudex-run similarity index 100% rename from immudex-run rename to bin/immudex-run diff --git a/immudex-secured-firefox b/bin/immudex-secured-firefox similarity index 100% rename from immudex-secured-firefox rename to bin/immudex-secured-firefox diff --git a/immudex-secured-librewolf b/bin/immudex-secured-librewolf similarity index 100% rename from immudex-secured-librewolf rename to bin/immudex-secured-librewolf diff --git a/bin/immudex-version b/bin/immudex-version new file mode 100755 index 0000000..9c663f7 --- /dev/null +++ b/bin/immudex-version @@ -0,0 +1,39 @@ +#!/bin/bash + +function help() { + echo "Script returns first 7 signs of immudex commit ID."; + echo; + echo "Usage: immudex-version [--help] [--version]"; + echo; + echo "Options:"; + echo " --help Print this message."; + echo " --version Print information about version, author and copyrights."; + echo; + echo "Files:"; + echo " /run/live/medium/live/changelog Stores information about currently running immudex image."; + echo; + echo "Report bugs to "; +} + +function version(){ + echo "immudex-version 1.0"; + echo; + echo "Copyright (C) 2026 morketsmerke.org"; + echo "This is free software; see the source for copying conditions. There is NO"; + echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."; + echo; + echo "Written by xf0r3m."; +} + +if [ "$1" ]; then + if [ "$1" = "--help" ]; then + help; + exit 0; + elif [ "$1" = "--version" ]; then + version; + exit 0; + fi +fi + +eval $(grep '^COMMIT' /run/live/medium/live/changelog) +echo $COMMIT | awk '{printf $1}' | cut -c 1-7 diff --git a/library.sh b/bin/library.sh similarity index 51% rename from library.sh rename to bin/library.sh index 2e50210..1ba9ed8 100755 --- a/library.sh +++ b/bin/library.sh @@ -1,5 +1,36 @@ #!/bin/bash + +#function help() { +# echo "This script does noting. It's a collection of functions uses by"; +# echo "other tools, by import this file into it self. Man page for this script"; +# echo "can be usefull for describe above mentioned functions."; +# echo; +# echo "Notes:"; +# echo -e " get_debian_branch() Can be used for convert Debian codename for Debian branch name\n"; +# echo -e " get_machine_arch() Used for getting information is this 32 or 64-bit architecture.\n"; +# echo -e " check_distro_commit() Is used for decide that you use a latest version immudex if there are commit ahead your image, this script returns 0, otherwise 1.\n"; +# echo -e " ascii_colors() Prints immudex name in ASCII manuali.\n"; +# echo; +# echo "Usage: source /usr/local/bin/library.sh"; +# echo; +# echo "Options:"; +# echo " There is no options... Function help and version are used only for generate man page file and will be comment out after this."; +# echo; +# echo "Report bugs to "; +#} + +#function version(){ +# echo "library.sh 1.0"; +# echo; +# echo "Copyright (C) 2026 morketsmerke.org"; +# echo "This is free software; see the source for copying conditions. There is NO"; +# echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."; +# echo; +# echo "Written by xf0r3m."; +#} + + function get_debian_branch() { if grep -q 'trixie' /etc/os-release; then echo "testing"; @@ -57,3 +88,13 @@ function ascii_colors() { echo -e "${ENDCOLOR}"; } + +#if [ "$1" ]; then +# if [ "$1" = "--help" ]; then +# help; +# exit 0; +# elif [ "$1" = "--version" ]; then +# version; +# exit 0; +# fi +#fi diff --git a/dependencies.txt b/dependencies.txt deleted file mode 100644 index 6cb5fd1..0000000 --- a/dependencies.txt +++ /dev/null @@ -1 +0,0 @@ -immudex-padlock: gnome-icon-theme diff --git a/immudex-version b/immudex-version deleted file mode 100755 index 67be301..0000000 --- a/immudex-version +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -eval $(grep '^COMMIT' /run/live/medium/live/changelog) -echo $COMMIT | awk '{printf $1}' | cut -c 1-7 diff --git a/immudex-branch.1 b/man/immudex-branch.1 similarity index 100% rename from immudex-branch.1 rename to man/immudex-branch.1 diff --git a/hostname/immudex-hostname.1 b/man/immudex-hostname.1 similarity index 100% rename from hostname/immudex-hostname.1 rename to man/immudex-hostname.1 diff --git a/immudex-import-gpgkeys.1 b/man/immudex-import-gpgkeys.1 similarity index 100% rename from immudex-import-gpgkeys.1 rename to man/immudex-import-gpgkeys.1 diff --git a/immudex-import-sshkeys.1 b/man/immudex-import-sshkeys.1 similarity index 100% rename from immudex-import-sshkeys.1 rename to man/immudex-import-sshkeys.1 diff --git a/immudex-install.1 b/man/immudex-install.1 similarity index 100% rename from immudex-install.1 rename to man/immudex-install.1 diff --git a/immudex-padlock.1 b/man/immudex-padlock.1 similarity index 100% rename from immudex-padlock.1 rename to man/immudex-padlock.1 diff --git a/immudex-run.1 b/man/immudex-run.1 similarity index 100% rename from immudex-run.1 rename to man/immudex-run.1 diff --git a/immudex-secured-firefox.1 b/man/immudex-secured-firefox.1 similarity index 100% rename from immudex-secured-firefox.1 rename to man/immudex-secured-firefox.1 diff --git a/immudex-secured-librewolf.1 b/man/immudex-secured-librewolf.1 similarity index 100% rename from immudex-secured-librewolf.1 rename to man/immudex-secured-librewolf.1 diff --git a/immudex-upgrade.1 b/man/immudex-upgrade.1 similarity index 100% rename from immudex-upgrade.1 rename to man/immudex-upgrade.1 diff --git a/man/immudex-version.1 b/man/immudex-version.1 new file mode 100644 index 0000000..31f8abf --- /dev/null +++ b/man/immudex-version.1 @@ -0,0 +1,41 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH IMMUDEX-VERSION "1" "April 2026" "immudex-version 1.0" "User Commands" +.SH NAME +immudex-version \- immudex image commit +.SH SYNOPSIS +.B immudex-version +[\fI\,--help\/\fR] [\fI\,--version\/\fR] +.SH DESCRIPTION +Script returns first 7 signs of immudex commit ID. +.SH OPTIONS +.TP +\fB\-\-help\fR +Print this message. +.TP +\fB\-\-version\fR +Print information about version, author and copyrights. +.SH FILES +.TP +\fI\,/run/live/medium/live/changelog\/\fP +Stores information about currently running immudex image. +.SH AUTHOR +Written by xf0r3m. +.SH "REPORTING BUGS" +Report bugs to +.SH COPYRIGHT +Copyright \(co 2026 morketsmerke.org +.br +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +.SH "SEE ALSO" +The full documentation for +.B immudex-version +is maintained as a Texinfo manual. If the +.B info +and +.B immudex-version +programs are properly installed at your site, the command +.IP +.B info immudex-version +.PP +should give you access to the complete manual. diff --git a/man/library.sh.1 b/man/library.sh.1 new file mode 100644 index 0000000..efc6ca6 --- /dev/null +++ b/man/library.sh.1 @@ -0,0 +1,49 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH LIBRARY.SH "1" "April 2026" "library.sh 1.0" "User Commands" +.SH NAME +library.sh \- collection of BASH function +.SH SYNOPSIS +.B source +\fI\,/usr/local/bin/library.sh\/\fR +.SH DESCRIPTION +This script does noting. It's a collection of functions uses by +other tools, by import this file into it self. Man page for this script +can be usefull for describe above mentioned functions. +.SS "Notes:" +.TP +get_debian_branch() +Can be used for convert Debian codename for Debian branch name +.TP +get_machine_arch() +Used for getting information is this 32 or 64\-bit architecture. +.TP +check_distro_commit() +Is used for decide that you use a latest version immudex if there are commit ahead your image, this script returns 0, otherwise 1. +.TP +ascii_colors() +Prints immudex name in ASCII manuali. +.SH OPTIONS +.TP +There is no options... +Function help and version are used only for generate man page file and will be comment out after this. +.SH AUTHOR +Written by xf0r3m. +.SH "REPORTING BUGS" +Report bugs to +.SH COPYRIGHT +Copyright \(co 2026 morketsmerke.org +.br +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +.SH "SEE ALSO" +The full documentation for +.B library.sh +is maintained as a Texinfo manual. If the +.B info +and +.B library.sh +programs are properly installed at your site, the command +.IP +.B info library.sh +.PP +should give you access to the complete manual. diff --git a/hostname/immudex-hostname.service b/misc/immudex-hostname.service similarity index 100% rename from hostname/immudex-hostname.service rename to misc/immudex-hostname.service diff --git a/hostname/immudex-hostname b/sbin/immudex-hostname similarity index 100% rename from hostname/immudex-hostname rename to sbin/immudex-hostname diff --git a/immudex-install b/sbin/immudex-install similarity index 100% rename from immudex-install rename to sbin/immudex-install diff --git a/immudex-upgrade b/sbin/immudex-upgrade similarity index 100% rename from immudex-upgrade rename to sbin/immudex-upgrade -- 2.39.5