]> gitweb.morketsmerke.org Git - immudex-only-tools.git/commitdiff
Zakończono tworzenie plików podręcznika, wprowadzono strukrurę katalogową pozwalającą...
authorxf0r3m <jakubstasinski@protonmail.com>
Sun, 19 Apr 2026 09:49:29 +0000 (11:49 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Sun, 19 Apr 2026 09:49:29 +0000 (11:49 +0200)
27 files changed:
bin/immudex-branch [moved from immudex-branch with 100% similarity]
bin/immudex-import-gpgkeys [moved from immudex-import-gpgkeys with 100% similarity]
bin/immudex-import-sshkeys [moved from immudex-import-sshkeys with 100% similarity]
bin/immudex-padlock [moved from immudex-padlock with 100% similarity]
bin/immudex-run [moved from immudex-run with 100% similarity]
bin/immudex-secured-firefox [moved from immudex-secured-firefox with 100% similarity]
bin/immudex-secured-librewolf [moved from immudex-secured-librewolf with 100% similarity]
bin/immudex-version [new file with mode: 0755]
bin/library.sh [moved from library.sh with 51% similarity]
dependencies.txt [deleted file]
immudex-version [deleted file]
man/immudex-branch.1 [moved from immudex-branch.1 with 100% similarity]
man/immudex-hostname.1 [moved from hostname/immudex-hostname.1 with 100% similarity]
man/immudex-import-gpgkeys.1 [moved from immudex-import-gpgkeys.1 with 100% similarity]
man/immudex-import-sshkeys.1 [moved from immudex-import-sshkeys.1 with 100% similarity]
man/immudex-install.1 [moved from immudex-install.1 with 100% similarity]
man/immudex-padlock.1 [moved from immudex-padlock.1 with 100% similarity]
man/immudex-run.1 [moved from immudex-run.1 with 100% similarity]
man/immudex-secured-firefox.1 [moved from immudex-secured-firefox.1 with 100% similarity]
man/immudex-secured-librewolf.1 [moved from immudex-secured-librewolf.1 with 100% similarity]
man/immudex-upgrade.1 [moved from immudex-upgrade.1 with 100% similarity]
man/immudex-version.1 [new file with mode: 0644]
man/library.sh.1 [new file with mode: 0644]
misc/immudex-hostname.service [moved from hostname/immudex-hostname.service with 100% similarity]
sbin/immudex-hostname [moved from hostname/immudex-hostname with 100% similarity]
sbin/immudex-install [moved from immudex-install with 100% similarity]
sbin/immudex-upgrade [moved from immudex-upgrade with 100% similarity]

similarity index 100%
rename from immudex-branch
rename to bin/immudex-branch
similarity index 100%
rename from immudex-padlock
rename to bin/immudex-padlock
similarity index 100%
rename from immudex-run
rename to bin/immudex-run
diff --git a/bin/immudex-version b/bin/immudex-version
new file mode 100755 (executable)
index 0000000..9c663f7
--- /dev/null
@@ -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 <xf0r3m@gmail.com>";
+}
+
+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
similarity index 51%
rename from library.sh
rename to bin/library.sh
index 2e50210d727bdb5b7985cae594d637f3efdac4a6..1ba9ed801d910f7dd8c0bd3dd23f94edfd8c111e 100755 (executable)
@@ -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 <xf0r3m@gmail.com>";  
+#}
+
+#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 (file)
index 6cb5fd1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-immudex-padlock: gnome-icon-theme
diff --git a/immudex-version b/immudex-version
deleted file mode 100755 (executable)
index 67be301..0000000
+++ /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
similarity index 100%
rename from immudex-branch.1
rename to man/immudex-branch.1
similarity index 100%
rename from immudex-install.1
rename to man/immudex-install.1
similarity index 100%
rename from immudex-padlock.1
rename to man/immudex-padlock.1
similarity index 100%
rename from immudex-run.1
rename to man/immudex-run.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 (file)
index 0000000..31f8abf
--- /dev/null
@@ -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 <xf0r3m@gmail.com>
+.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 (file)
index 0000000..efc6ca6
--- /dev/null
@@ -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 <xf0r3m@gmail.com>
+.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.
similarity index 100%
rename from immudex-install
rename to sbin/immudex-install
similarity index 100%
rename from immudex-upgrade
rename to sbin/immudex-upgrade