+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-BRANCH "1" "May 2026" "immudex-branch 1.1" "User Commands"
-.SH NAME
-immudex-branch \- it's a conky helper script, which returns Debian version used for build immudex.
-.SH SYNOPSIS
-.B immudex-branch
-[\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-immudex\-branch it's a conky helper script, which returns Debian version
-used for build immudex. This information is used in 'Info:' section
-in conky widget as complement in name of immudex version.
-.SH OPTIONS
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights.
-.SH EXAMPLES
-.TP
-immudex\-branch
-Prints version of Debian used for immudex build with hyphen on start of.
-.TP
-immudex\-branch \-h
-Prints this message.
-.TP
-immudex\-branch \-v
-Print information about version, author and copyrights.
-.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-branch
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-branch
-programs are properly installed at your site, the command
-.IP
-.B info immudex-branch
-.PP
-should give you access to the complete manual.
echo "Script apart form ripping Audio CD's, reads metadata, check it on music";
echo "databases and creates properly named directories and audio files.";
echo;
- echo "Usage: immudex-cdrip [-h] [-g] [-o] [-r] [-v]";
+ echo "Usage: immudex-cdrip [-g] [-h] [-o] [-r] [-v]";
echo;
echo "Options:";
- echo " -h Print this message.";
echo " -g Getting metadata from Audio CD without ripping.";
+ echo " -h Print this message.";
echo " -o Rips audio tracks from Audio CD, without renaming based Audio CD metadata";
echo " -r Rips audio tracks from Audio CD, create Artist/Album folders and rename tracks according to AudioCD metadata.";
echo " -v Print information about version, author and copyrights.";
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-CDRIP "1" "May 2026" "immudex-cdrip 1.1" "User Commands"
-.SH NAME
-immudex-cdrip \- BASH script for collect audio tracks from Audio CD's
-.SH SYNOPSIS
-.B immudex-cdrip
-[\fI\,-h\/\fR] [\fI\,-g\/\fR] [\fI\,-o\/\fR] [\fI\,-r\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-immudex\-cdrip it's a bash script for collect audio tracks from Audio CD's.
-Script apart form ripping Audio CD's, reads metadata, check it on music
-databases and creates properly named directories and audio files.
-.SH OPTIONS
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-g\fR
-Getting metadata from Audio CD without ripping.
-.TP
-\fB\-o\fR
-Rips audio tracks from Audio CD, without renaming based Audio CD metadata
-.TP
-\fB\-r\fR
-Rips audio tracks from Audio CD, create Artist/Album folders and rename tracks according to AudioCD metadata.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights.
-.SH EXAMPLES
-.TP
-immudex\-cdrip
-Print this message
-.TP
-immudex\-cdrip \-g
-Get metadata from Audio CD
-.TP
-immudex\-cdrip \-o
-Rip tracks form Audio CD, without renaming. Could be useful with less popular artists.
-.TP
-immudex\-cdrip \-r
-Rips Audio CD and names dirs and files with Audio CD data.
-.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-cdrip
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-cdrip
-programs are properly installed at your site, the command
-.IP
-.B info immudex-cdrip
-.PP
-should give you access to the complete manual.
#!/bin/bash
+#immudex-branch, #immudex-hostname, #immudex-import-gpgkeys, #immudex-motd,
+#immudex-padlock, #immudex-run, #immudex-secured-firefox, #immudex-secured-librewolf
+#immudex-version,
+idx_simple_options_complete() {
+ local cur;
+
+ COMPREPLY=();
+ cur=${COMP_WORDS[COMP_CWORD]};
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-h -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
+ return 0;
+ fi
+ return 0;
+}
+
+#immudex-cdrip
+idx_cdrip_complete() {
+ local cur;
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]};
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-g -h -o -r -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
+ return 0;
+ fi
+ return 0;
+}
+
+#immudex-create-media
disk_list() {
i=0;
diskList=();
echo -n ${diskList[@]};
}
-idx_simple_options_complete() {
- local cur;
+
+idx_create_media_complete() {
+ local cur prev
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]};
+ prev=${COMP_WORDS[COMP_CWORD-1]};
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-e32 -h -l -n -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
+ case "$prev" in
+ '-e32' | '-l') COMPREPLY=( $(compgen -f -X "!*.iso" -- $cur) );;
+ '-n') COMPREPLY=( $(compgen -W "$(disk_list)" -- $cur) );;
+ *) return 0;;
+ esac
+ elif [ $COMP_CWORD -eq 3 ]; then
+ case "$prev" in
+ *.iso) COMPREPLY=( $(compgen -W "$(disk_list)" -- $cur) );;
+ *) return 0;;
+ esac
+ fi
+ return 0
+}
+
+#immudex-crypt
+return_ic_index() {
+ echo -n "$(ls /dev/mapper | grep 'immudex-crypt[0-9]*' | grep -o '[0-9]*' | awk '{printf $1" " }')";
+}
+
+part_list() {
+ i=0;
+ partList=();
+ for part in $(ls -l /dev/ | grep '^b' | grep -v '\ 0\ ' | grep -v 'dm' | awk '{printf $NF" "}'); do
+ partList[$i]="/dev/${part}";
+ i=$(expr $i + 1);
+ done
+ echo -n ${partList[@]};
+}
+
+cryptDevice_list() {
+ echo -n "$(/usr/sbin/blkid | grep 'crypto_LUKS' | awk '{printf $1" "}' | sed 's/://g')";
+}
+
+idx_crypt_complete() {
+ local cur prev
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]};
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-c -f -h -l -o -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
+ case "$prev" in
+ '-c') COMPREPLY=( $(compgen -W "$(return_ic_index)" -- $cur) );;
+ '-f') COMPREPLY=( $(compgen -W "$(part_list)" -- $cur) );;
+ '-o') COMPREPLY=( $(compgen -W "$(cryptDevice_list)" -- $cur) );;
+ *) return 0;;
+ esac
+ fi
+ return 0;
+}
+
+#immudex-import-sshkeys
+idx_import_sshkeys_complete() {
+ local cur;
COMPREPLY=();
cur=${COMP_WORDS[COMP_CWORD]};
- if [ $(expr $COMP_CWORD % 2) -eq 1 ]; then
- COMPREPLY=( $(compgen -W '-h -v' -- $cur) );
- elif [ $(expr $COMP_CWORD % 2) -eq 0 ]; then
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-i -h -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
return 0;
fi
return 0;
+
}
+#immudex-install
+idx_install_complete() {
+ local cur;
-idx_create_media_complete() {
- local cur prev
+ COMPREPLY=();
+ cur=${COMP_WORDS[COMP_CWORD]};
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-h -p -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
+ return 0;
+ fi
+ return 0;
+
+}
+
+#immudex-meteo
+idx_meteo_complete() {
+local cur prev
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]};
- prev=${COMP_WORDS[COMP_CWORD-1]};
+ prev=${COMP_WORDS[COMP_CWORD-1]}
- if [ $(expr $COMP_CWORD % 2) -eq 1 ]; then
- COMPREPLY=( $(compgen -W '-d -i -n -e32 -h -v' -- $cur) );
- elif [ $(expr $COMP_CWORD % 2) -eq 0 ]; then
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-h -l -m -s -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
case "$prev" in
- '-d') COMPREPLY=( $(compgen -W "$(disk_list)" -- $cur) );;
- '-i') COMPREPLY=( $(compgen -f -X "!*.iso" $cur) );;
- '-n') COMPREPLY=( $(compgen -W "$(disk_list)" -- $cur) );;
- '-e32') COMPREPLY=( $(compgen -W "$(disk_list)" -- $cur) );;
- *);;
+ '-l'|'-m'|'-s')
+ if [ -f /etc/motd.conf ]; then
+ source /etc/motd.conf;
+ COMPREPLY=( $(compgen -W "$LOCATION" -- $cur) )
+ else
+ return 0;
+ fi
+ ;;
+ *) return 0;;
esac
fi
- return 0
+ return 0;
+}
+
+#immudex-morketsmerke
+idx_morketsmerke_complete() {
+ local cur;
+
+ COMPREPLY=();
+ cur=${COMP_WORDS[COMP_CWORD]};
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-b -h -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
+ return 0;
+ fi
+ return 0;
+
+}
+
+#immudex-pl
+idx_pl_complete() {
+ local cur;
+
+ COMPREPLY=();
+ cur=${COMP_WORDS[COMP_CWORD]};
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-h -i -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
+ return 0;
+ fi
+ return 0;
+
}
+
+#immudex-shoutcasts
+idx_shoutcasts_complete() {
+ local cur prev
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]};
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W '-h -l -m -s -v' -- $cur) );
+ elif [ $COMP_CWORD -eq 2 ]; then
+ case "$prev" in
+ '-l'|'-m'|'-s')
+ COMPREPLY=( $(compgen -W "$LOCATION" -- $cur) )
+ ;;
+ *) return 0;;
+ esac
+ fi
+ return 0;
+}
+
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-CREATE-MEDIA "1" "May 2026" "immudex-create-media 1.1" "User Commands"
-.SH NAME
-immudex-create-media \- BASH script used for write iso image to usb drive.
-.SH SYNOPSIS
-.B immudex-create-media
-[\fI\,-e32 immudex.iso /dev/sdX\/\fR] [\fI\,-h\/\fR] [\fI\,-l file.iso /dev/sdX\/\fR] [\fI\,-n /dev/sdX\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-immudex\-create\-media it's script used for write iso image to usb drive.
-Script writes .iso file to usb stick \- make it then bootable. This
-script prepare usb disks for 32\-bit EFI systems.
-Superuser (root) privileges are required.
-.SH OPTIONS
-.TP
-\fB\-e32\fR immudex.iso \fI\,/dev/sdX\/\fP
-Creating 32\-bit EFI bootable usb drive with iso image. (Compatibile with immudex images only.)
-.TP
-\fB\-\-help\fR
-Print this message.
-.TP
-\fB\-l\fR file.iso \fI\,/dev/sdX\/\fP
-Load file.iso to \fI\,/dev/sdX\/\fP drive.
-.TP
-\fB\-n\fR \fI\,/dev/sdX\/\fP
-Write 0's to 1st megabyte of disk, wiping partition table.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights.
-.SS "Exmaples:"
-.TP
-immudex\-create\-media
-Print this message.
-.TP
-immudex\-create\-media \fB\-l\fR \fI\,/dev/sdX\/\fP file.iso
-Writes iso file to usb stick, made it bootable.
-.TP
-immudex\-create\-media \fB\-e32\fR \fI\,/dev/sdX\/\fP immudex.iso
-Create 32\-bit EFI bootable usb stick with immudex.
-.TP
-immudex\-create\-media \fB\-n\fR \fI\,/dev/sdX\/\fP
-Writes first MB with 0's, deleting partition table
-.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-create-media
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-create-media
-programs are properly installed at your site, the command
-.IP
-.B info immudex-create-media
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-CRYPT "1" "May 2026" "immudex-crypt 1.1" "User Commands"
-.SH NAME
-immudex-crypt \- BASH script used for listing, open, close and create crypt_LUKS partitions.
-.SH SYNOPSIS
-.B immudex-crypt
-[\fI\,-c index\/\fR] [\fI\,-f /dev/partition\/\fR] [\fI\,-h\/\fR] [\fI\,-l\/\fR] [\fI\,-o /dev/crypt_LUKS_device\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-immudex\-crypt is script used for listing, open, close and create crypt_LUKS partitions.
-Script creates 'immudex\-crypt' mount points, every mount point end up with 'index'.
-Index is order number of opening crypt_LUKS devices via 'immudex\-crypt' The first
-opened device will have index equal 0, second = 1, and so on and on.
-Superuser (root) privileges are required.
-.SH OPTIONS
-.TP
-\fB\-c\fR INDEX/icINDEX/immudex\-cryptINDEX
-Unmounting and close opened crypt_LUKS devices.
-.TP
-\fB\-f\fR \fI\,/dev/partition\/\fP
-Preparing device for crypt_LUKS.
-.TP
-\fB\-h\fR
-Prints this message.
-.TP
-\fB\-l\fR
-Prints list of opened and available crypt_LUKS devices.
-.TP
-\fB\-o\fR \fI\,/dev/crypt_LUKS_device\/\fP
-Opening and mount crypt_LUKS device (it creates mount point, if not exist).
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights.
-.SH EXAMPLES
-.TP
-immudex\-crypt \-l
-List available crypt_LUKS devices in the system.
-.TP
-immudex\-crypt \-f /dev/sdX
-Create crypt_LUKS device from given partition.
-.TP
-immudex\-crypt \-o /dev/sdX
-Open given crypt_LUKS device (with mounting file system, of course).
-.TP
-immudex\-crypt \-c 0
-Close first opened crypt_LUKS device in the system.
-.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-crypt
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-crypt
-programs are properly installed at your site, the command
-.IP
-.B info immudex-crypt
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-HOSTNAME "1" "May 2026" "immudex-hostname 1.1" "User Commands"
-.SH NAME
-immudex-hostname \- it's a main executional script for immudex-hostname service.
-.SH SYNOPSIS
-.B immudex-hostname
-[\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-immudex\-hostname it's a main executional script for immudex\-hostname
-service. The script job is to change set appropriate name for this
-host based on computer chassis and 7 last chars from boot ID.
-.SH OPTIONS
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights.
-.SH FILES
-.TP
-\fI\,/usr/lib/systemd/system/immudex\-hostname.service\/\fP
-Systemd unit file, to run immudex\-hostname script as a service.
-.SH EXAMPLES
-.TP
-immudex\-hostname
-Set apropriate hostname, usually executed by systemd.
-.TP
-immudex\-hostname \-h
-Print this message.
-.TP
-immudex\-hostname \-v
-Print information about version, author and copyrights.
-.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-hostname
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-hostname
-programs are properly installed at your site, the command
-.IP
-.B info immudex-hostname
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-IMPORT-GPGKEYS "1" "May 2026" "immudex-import-gpgkeys 1.1" "User Commands"
-.SH NAME
-immudex-import-gpgkeys \- it's a script for import GPG keys and owner trust.
-.SH SYNOPSIS
-.B immudex-import-gpgkeys
-[\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-it's a script for import GPG keys and owner trust. GPG keys can be used
-by 'pass' \- POSIX compatibile password manager or signing. It's very
-helpful, when your keys are in files in encrypted datastore.
-Script requires to store GPG keys in home dir or change home dir before
-execute a script.
-.SH OPTIONS
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights
-.SH EXAMPLES
-.TP
-immudex\-import\-gpgkeys
-Import GPG keys and owner trust.
-.TP
-immudex\-import\-gpgkeys \-h
-Print this message.
-.TP
-immudex\-import\-gpgkeys \-v
-Print information about version, author and copyrights.
-.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-import-gpgkeys
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-import-gpgkeys
-programs are properly installed at your site, the command
-.IP
-.B info immudex-import-gpgkeys
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-IMPORT-SSHKEYS "1" "May 2026" "immudex-import-sshkeys 1.1" "User Commands"
-.SH NAME
-immudex-import-sshkeys \- it's a script for copying OpenSSH client files such as keys and config file into user native home directory
-.SH SYNOPSIS
-.B immudex-import-sshkeys
-[\fI\,-i\/\fR] [\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-it's a script for copying OpenSSH client files such as keys and config file into user native home directory.
-This command should be run in other home directory, where ssh keys are stored.
-.SH OPTIONS
-.TP
-\fB\-i\fR
-Import hostnames and adresses to \fI\,/etc/host\/\fP file (sudo required) from SSH config file if exist.
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights.
-.SH EXAMPLES
-.TP
-immudex\-import\-sshkeys
-Import OpenSSH client files into user native home dir.
-.TP
-immudex\-import\-sshkeys \-i
-Import OpenSSH client files and create DNS resolve database in /etc/hosts by taking data from OpenSSH client config file, if exist.
-.TP
-immudex\-import\-sshkeys \-h
-Print this message.
-.TP
-immudex\-import\-sshkeys \-v
-Print information about version, author and copyrights.
-.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-import-sshkeys
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-import-sshkeys
-programs are properly installed at your site, the command
-.IP
-.B info immudex-import-sshkeys
-.PP
-should give you access to the complete manual.
echo "changed via below described option.";
echo "This script requires superuser (root) privileges.";
echo;
- echo "Usage: immudex-install [-p 3G] [-h] [-v]";
+ echo "Usage: immudex-install [-h] [-p 3G] [-v]";
echo;
echo "Options:";
- echo " -p 3G This option change a partition size with immudex image. Usefull for custom builds. By default it's 3GB.";
echo " -h Print this message.";
+ echo " -p 3G This option change a partition size with immudex image. Usefull for custom builds. By default it's 3GB.";
echo " -v Print information about version, author and copyrights.";
echo;
echo "Examples:";
fi
if [ "$1" ]; then
if $(echo $1 | grep -q '-p'); then
- idxPartSize=$2;
+ if [ "$2" ]; then
+ idxPartSize=$2;
+ else
+ idxPartSize="3G";
+ fi
else
idxPartSize="3G";
fi
idxPartSize="3G";
fi
-if [ $UID -ne 0 ]; then
- echo "Permission denied!";
- exit 1;
-fi
+#if [ $UID -ne 0 ]; then
+# echo "Permission denied!";
+# exit 1;
+#fi
while [ true ]; do
echo -e "${RED}This script will install immudex on first disk on your machine.${ENDCOLOR}";
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-INSTALL "1" "May 2026" "immudex-install 1.1" "User Commands"
-.SH NAME
-immudex-install \- immudex installation script
-.SH SYNOPSIS
-.B immudex-install
-[\fI\,-p 3G\/\fR] [\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-it's a script for installation immudex LiveCD images on computer hard
-disk. This program runs interactivly and the one thing you need to do
-is choose a right disk for installation. That's all, but if you using
-custom images, you may need change partition size for immudex image.
-It's hard to imagine, how it's possible to create images bigger than 3
-GB. It would happens. More space in this partition is also needed for
-upgrades tasks. So if your image is bigger than 2 GiB, you need to
-change size of this partition before you start instalation.
-Recomended size is 3 times the image size. The partition size can be
-changed via below described option.
-This script requires superuser (root) privileges.
-.SH OPTIONS
-.TP
-\fB\-p\fR 3G
-This option change a partition size with immudex image. Usefull for custom builds. By default it's 3GB.
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights.
-.SH EXAMPLES
-.TP
-immudex\-install
-Standard execution, instalation immudex LiveCD on computer hard disk.
-.TP
-immudex\-install \-p 6G
-Run install script for custom immudex image build.
-.TP
-immudex\-install \-h
-Print this message.
-.TP
-immudex\-install \-v
-Print information about version, author and copyrights.
-.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-install
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-install
-programs are properly installed at your site, the command
-.IP
-.B info immudex-install
-.PP
-should give you access to the complete manual.
echo "The weather status is availabel to get in 3 formats described below";
echo "in options.";
echo;
- echo "Usage: immudex-meteo [-s|-l|-m location] [-h] [-v]";
+ echo "Usage: immudex-meteo [-h] [-l|-m|-s location] [-v]";
echo;
echo "Options:";
- echo " -s location Short human readable format with one small ascii art.";
+ echo " -h Prints this message";
echo " -l location Long format, more readable, weather for every stage of the day and 2-day forecast";
echo " -m location Micro format, one line with details (current weather)";
- echo " -h Prints this message";
+ echo " -s location Short human readable format with one small ascii art.";
echo " -v Prints information about version, author and copyrights";
echo;
echo "Exmaples:";
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-METEO "1" "May 2026" "immudex-meteo 1.1" "User Commands"
-.SH NAME
-immudex-meteo \- BASH script fetching weather status from wttr.in webpage.
-.SH SYNOPSIS
-.B immudex-meteo
-[\fI\,-s|-l|-m location\/\fR] [\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-immudex\-meteo script fetching weather status from wttr.in webpage.
-The weather status is availabel to get in 3 formats described below
-in options.
-.SH OPTIONS
-.TP
-\fB\-s\fR location
-Short human readable format with one small ascii art.
-.TP
-\fB\-l\fR location
-Long format, more readable, weather for every stage of the day and 2\-day forecast
-.TP
-\fB\-m\fR location
-Micro format, one line with details (current weather)
-.TP
-\fB\-h\fR
-Prints this message
-.TP
-\fB\-v\fR
-Prints information about version, author and copyrights
-.SS "Exmaples:"
-.TP
-immudex\-meteo \fB\-s\fR London
-Current weather in London in short format.
-.TP
-immudex\-meteo \fB\-l\fR Berlin
-Weather for whole day in Berlin and 2\-day forecast.
-.TP
-immudex\-meteo \fB\-m\fR Warszawa
-One line with weather information from Warsaw, good for motd's or resources monitors.
-.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-meteo
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-meteo
-programs are properly installed at your site, the command
-.IP
-.B info immudex-meteo
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-MORKETSMERKE "1" "May 2026" "immudex-morketsmerke 1.0" "User Commands"
-.SH NAME
-immudex-morketsmerke \- Fetch and adjust morketsmerke.org site
-.SH SYNOPSIS
-.B immudex-morketsmerke
-[\fI\,-b\/\fR] [\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-script for fetch and adjust morketsmerke.org site
-as offline available source of information.
-By default script open downloaded site in terminal via W3M browser with
-monochrome mode.
-.SH OPTIONS
-.TP
-\fB\-b\fR
-Launching fetched site in default application for open html sites.
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights
-.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-morketsmerke
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-morketsmerke
-programs are properly installed at your site, the command
-.IP
-.B info immudex-morketsmerke
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-MOTD "1" "May 2026" "immudex-motd 1.1" "User Commands"
-.SH NAME
-immudex-motd \- Prints configurable message of the day.
-.SH SYNOPSIS
-.B immudex-motd
-[\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-immudex\-motd prints configurable message of the day.
-Information and its quantity can be changed via the configuration file.
-Script using figlet basic font and lolcat for print header of message.
-.SH OPTIONS
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-v\fR
-Print information about version, author and copyright
-.SH FILES
-.TP
-\fI\,/etc/motd.conf\/\fP
-Script configuration file.
-.TP
-\fI\,/usr/share/doc/immudex\-motd/motd.conf.sample\/\fP
-Example configuration file.
-.SH EXAMPLES
-.TP
-immudex\-motd
-Run a script.
-.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-motd
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-motd
-programs are properly installed at your site, the command
-.IP
-.B info immudex-motd
-.PP
-should give you access to the complete manual.
launcher="/home/${USER}/.config/xfce4/panel/launcher-14/16844255236.desktop";
function main_unlock() {
- sudo /usr/local/sbin/immudex-crypt --open=$1;
- index=$(basename $(sudo /usr/local/sbin/immudex-crypt --list | grep "$1" | head -1 | awk '{printf $2}' | grep -o '[0-9]'));
+ sudo /usr/local/sbin/immudex-crypt -o $1;
+ index=$(basename $(sudo /usr/local/sbin/immudex-crypt -l | grep "$1" | head -1 | awk '{printf $2}' | grep -o '[0-9]'));
#sudo mkdir -p /media/${USER}/$devName;
#sudo mount /dev/mapper/$devName /media/${USER}/$devName;
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-PADLOCK "1" "May 2026" "immudex-padlock 1.1" "User Commands"
-.SH NAME
-immudex-padlock \- it's a switch script. This script, if there is more than one cryptdisk gives a change to choose a cryptdisk and starts opening him.
-.SH SYNOPSIS
-.B immudex-padlock
-[\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-it's a switch script. This script, if there is more than one cryptdisk
-gives a change to choose a cryptdisk and starts opening him. After
-sucessful opening, it spawns a terminal window with CWD sets up on
-choosed cryptdisk mountpoint and change the launcher icon in the bottom
-panel, which informs user, there are a opened cryptdisks. When user,
-execute script once again, he close all opened cryptdisk either that
-not open with this script. At least he tries. In some cases it will be
-impossible, because there are processes which using this cryptdisk or
-inside this mount point there is other mount point. This is signaled,
-by apropriate notification.
-This script needs superuser (root) privileges, but using sudo command
-is implemented inside the script, you don't needed to launch this
-via sudo.
-.SS "Example:"
-.TP
-immudex\-padlock
-Standard script execution, explained above.
-.TP
-immudex\-padlock \fB\-h\fR
-Print this message.
-.TP
-immudex\-padlock \fB\-v\fR
-Print information about version, author and copyrights.
-.SH FILES
-.TP
-\fI\,/usr/share/icons/padlock\-icon.png\/\fP
-Symlink, original launcher icon.
-.TP
-\fI\,/usr/share/icons/changes\-prevent.png\/\fP
-Original, closed padlock icon.
-.TP
-\fI\,/usr/share/icons/changes\-allow.png\/\fP
-Original, open padlock icon.
-.TP
-/etc/skel/.config/xfce4/panel/launcher\-14/16844255236.desktop
-XFCE4 bottom panel script activator.
-.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-padlock
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-padlock
-programs are properly installed at your site, the command
-.IP
-.B info immudex-padlock
-.PP
-should give you access to the complete manual.
echo "not need to be stored on the target device. Script will delete the";
echo "file at the end of its execution. ";
echo;
- echo "Usage: immudex-pl [-V youtube_video_quality] [-h] [-v] link-list";
+ echo "Usage: immudex-pl [-h] [-i] [-v youtube_video_quality] link-list";
echo;
echo "Options:";
- echo " -V 240p...1080p Open link as video.";
+ echo " -v 240p...1080p Open link as video.";
echo " -h Print this message.";
- echo " -v Print information about version, author and copyrights.";
+ echo " -i Print information about version, author and copyrights.";
echo;
echo "Files:";
echo " /usr/share/doc/immudex-pl/links.list.example Example link list file.";
echo;
echo "Examples:"
echo " immudex-pl ~/radio-links.txt Open given link list as audio stream.";
- echo " immudex-pl -V 360p ./yt-links Open given link list as video in 360p format.";
+ echo " immudex-pl -v 360p ./yt-links Open given link list as video in 360p format.";
echo;
echo "Report bugs to <xf0r3m@gmail.com>";
}
echo "Written by xf0r3m.";
}
-if [ "$1" ] && [ $1 = "-V" ]; then
+if [ "$1" ] && [ $1 = "-v" ]; then
video=1;
shift;
if $(echo $1 | grep -q '[0-9]*p'); then
elif [ "$1" ] && [ $1 = "-h" ]; then
help;
exit 0;
-elif [ "$1" ] && [ $1 = "-v" ]; then
+elif [ "$1" ] && [ $1 = "-i" ]; then
version;
exit 0;
else
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-PL "1" "May 2026" "immudex-pl 1.1" "User Commands"
-.SH NAME
-immudex-pl \- Opening (play) links from link list.
-.SH SYNOPSIS
-.B immudex-pl
-[\fI\,-V youtube_video_quality\/\fR] [\fI\,-h\/\fR] [\fI\,-v\/\fR] \fI\,link-list\/\fR
-.SH DESCRIPTION
-immudex\-pl opening (play) links. Script creates menu from link list, which
-can be open via mpv (with yt\-dlp hook). Normally links are open as
-audio stream. Script work in loop, which means you can change playback
-while the current one is still playing. When you need to exit type any letter instead of number.
-Script is not only for YouTube Links, it can also open
-internet radios or shoutcasts. The link list can be downloaded and does
-not need to be stored on the target device. Script will delete the
-file at the end of its execution.
-.SH OPTIONS
-.TP
-\fB\-V\fR 240p...1080p
-Open link as video.
-.TP
-\fB\-h\fR
-Print this message.
-.TP
-\fB\-v\fR
-Print information about version, author and copyrights.
-.SH FILES
-.TP
-\fI\,/usr/share/doc/immudex\-pl/links.list.example\/\fP
-Example link list file.
-.SH EXAMPLES
-.TP
-immudex\-pl ~/radio\-links.txt
-Open given link list as audio stream.
-.TP
-immudex\-pl \-V 360p ./yt\-links
-Open given link list as video in 360p format.
-.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-pl
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-pl
-programs are properly installed at your site, the command
-.IP
-.B info immudex-pl
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-RUN "1" "May 2026" "immudex-run 1.1" "User Commands"
-.SH NAME
-immudex-run \- Script for run a program in changed user home dir.
-.SH SYNOPSIS
-.B immudex-run
-[\fI\,-h\/\fR] [\fI\,-v\/\fR] \fI\,program_name \/\fR[\fI\,program_args\/\fR]
-.SH DESCRIPTION
-This script allows to run a program with pointed home dir on first
-opened LUKS partition via immudex\-crypt tool. The most programs in
-Linux write some data in users home dirs. Doing this persistentaly
-in immudex is imposible, because all default users home dirs came back
-to state from image and wroted date are gone. Running programs via this
-scripts makes possible to save this date on first 'crypt'.
-This script can be use to make your own activators easlly.
-.SH EXAMPLES
-.TP
-immudex\-run firefox\-esr
-Run given program
-.TP
-immudex\-run \-h
-Print this message
-.TP
-immudex\-run \-v
-Print information about version, author and copyrights
-.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-run
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-run
-programs are properly installed at your site, the command
-.IP
-.B info immudex-run
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-SECURED-FIREFOX "1" "May 2026" "immudex-secured-firefox 1.1" "User Commands"
-.SH NAME
-immudex-secured-firefox \- Run secured firefox.
-.SH SYNOPSIS
-.B immudex-secured-firefox
-[\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-This tool running up a Firefox browser via firejail with sandboxing
-and forcing network interface to that we use to internet connection.
-.SS "Exaples:"
-.TP
-immudex\-secured\-firefox
-Run secured browser.
-.TP
-immudex\-secured\-firefox \fB\-h\fR
-Print this message.
-.TP
-immudex\-secured\-firefox \fB\-v\fR
-Print information about version, author and copyrights
-.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-secured-firefox
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-secured-firefox
-programs are properly installed at your site, the command
-.IP
-.B info immudex-secured-firefox
-.PP
-should give you access to the complete manual.
+++ /dev/null
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
-.TH IMMUDEX-SECURED-LIBREWOLF "1" "May 2026" "immudex-secured-librewolf 1.1" "User Commands"
-.SH NAME
-immudex-secured-librewolf \- Run secured LibreWolf.
-.SH SYNOPSIS
-.B immudex-secured-librewolf
-[\fI\,-h\/\fR] [\fI\,-v\/\fR]
-.SH DESCRIPTION
-immudex\-secured\-librewolf, support for LibreWolf version. LibreWolf isn't
-part of immudex, but this tool officialy existed as a part of project.
-.SH EXAMPLES
-.TP
-immudex\-secured\-librewolf
-Run sandboxed LibreWolf browser.
-.TP
-immudex\-secured\-librewolf \-h
-Print this messages.
-.TP
-immudex\-secured\-librewolf \-v
-Print information about version, author and copyrights.
-.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-secured-librewolf
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B immudex-secured-librewolf
-programs are properly installed at your site, the command
-.IP
-.B info immudex-secured-librewolf
-.PP
-should give you access to the complete manual.
echo "directory and download .m3u file from radio-browser.info based on a space-separated keywords.";
echo "Data from radio-browser.info are limited to 30 results.";
echo;
- echo "Usage: immudex-shoutcasts [--source=icecast | radio] [--help] [--version] --keywords=keyword1...keywordN";
+ echo "Usage: immudex-shoutcasts [-s icecast | radio] [-h] [-v] -k keyword1...keywordN";
echo;
echo "Options:";
- echo " --source=icecast/radio This parameter specifies source, if we want define a source. It can be omitted, then both sources will be searched.";
- echo " --keywords=keyword1...keywordsN This parameter is required, it pass keywords to search. Keywords are space-separated.";
- echo " --help Print this message.";
- echo " --version Print information about version, author and copyrights.";
+ echo " -s icecast/radio This parameter specifies source, if we want define a source. It can be omitted, then both sources will be searched.";
+ echo " -k keyword1...keywordsN This parameter is required, it pass keywords to search. Keywords are space-separated.";
+ echo " -h Print this message.";
+ echo " -v Print information about version, author and copyrights.";
echo;
echo "Examples:";
- echo " immudex-shoutcasts --keywords=Classic Rock Script will be search internet radios and shoutcast for 'Classic Rock' keywords";
- echo " immudex-shoutcasts --source=radio --keywords=lofi Script will be search internet radios (because source is given) for 'lofi' keyword";
+ echo " immudex-shoutcasts -k Classic Rock Script will be search internet radios and shoutcast for 'Classic Rock' keywords";
+ echo " immudex-shoutcasts -s radio -k lofi Script will be search internet radios (because source is given) for 'lofi' keyword";
echo;
echo "Files:"
echo " /tmp/icecast.idx Temporary file, store search results from icecast directory for parsing.";
}
function version() {
- echo "immudex-shoutcasts 1.0";
+ echo "immudex-shoutcasts 1.1";
echo;
echo "Copyright (C) 2026 morketsmerke.org";
echo "This is free software; see the source for copying conditions. There is NO";
if [ "$1" ]; then
- if [ "$1" ] && [ "$1" = "--help" ]; then
+ if [ "$1" ] && [ "$1" = "-h" ]; then
help;
exit 0;
- elif [ "$1" ] && [ "$1" = "--version" ]; then
+ elif [ "$1" ] && [ "$1" = "-v" ]; then
version;
exit 0;
fi
- option=$(echo $1 | cut -d '=' -f 1);
- if [ "$option" = "--source" ]; then
- src=$(echo $1 | cut -d '=' -f 2);
- search=$(echo $* | cut -d '=' -f 3-);
- elif [ "$option" = "--keywords" ]; then
- search=$(echo $* | cut -d "=" -f 2-);
+ option=$1;
+ if [ "$option" = "-s" ]; then
+ shift;
+ src=$1;
+ shift 2;
+ search=$*
+ elif [ "$option" = "-k" ]; then
+ shift;
+ search=$*;
fi
else
help;
echo "Script for searching upgrades and upgrade immudex.";
echo "Superuser (root) privileges are required.";
echo;
- echo "Usage: immudex-upgrade [--help] [--version] [--check] [--upgrade] [--myversion] [--compilation-date] [--packages-upgradable [--security]]";
+ echo "Usage: immudex-upgrade [-c] [-d] [-h] [-m] [-p] [-s] [-u] [-v]";
echo;
echo "Options:";
- echo " --check Check there are upgrades for immudex";
- echo " --upgrade Upgrade immudex from given source";
- echo " --myversion Prints image details";
- echo " --compilation-date Prints date of image creation";
- echo " --packages-upgradable [--security] Updates apt (packages) list and prints available to upgrade packages, with --security modificator prints only pacakages from security repository branch";
- echo " --help Prints this message.";
- echo " --version Prints information about version, author and copyrights.";
+ echo " -c Check there are upgrades for immudex";
+ echo " -d Prints date of image creation";
+ echo " -h Prints this message.";
+ echo " -m Prints image details";
+ echo " -p Updates apt (packages) list and prints available to upgrade packages.";
+ echo " -s Updates apt (packages) list and prints only packages upgrades from security repository branch";
+ echo " -u Upgrade immudex from given source";
+ echo " -v Prints information about version, author and copyrights.";
echo;
echo "Report bugs to <xf0r3m@gmail.com>";
}
function version(){
- echo "immudex-upgrade 1.0";
+ echo "immudex-upgrade 1.1";
echo;
echo "Copyright (C) 2026 morketsmerke.org";
echo "This is free software; see the source for copying conditions. There is NO";
fi
if [ "$1" ]; then
- if [ "$1" = "--help" ]; then
+ if [ "$1" = "-h" ]; then
help;
exit 0;
- elif [ "$1" = "--version" ]; then
+ elif [ "$1" = "-v" ]; then
version;
exit 0;
fi
- if [ "$1" ] && [ "$1" = "--check" ]; then
+ if [ "$1" ] && [ "$1" = "-c" ]; then
if check_distro_commit; then
echo -e "${GREEN}This${ENDCOLOR} is the latest version of immudex";
else
echo "===================================================";
check_distro_commit --print;
fi
- elif [ "$1" ] && [ "$1" = "--upgrade" ]; then
+ elif [ "$1" ] && [ "$1" = "-u" ]; then
part=$(blkid | grep 'LABEL="immudex"' | awk '{printf $1}' | cut -d ":" -f 1);
if mount | grep -q "$part"; then
echo -n "Mounting iso image...";
fi
fi
fi
- elif [ "$1" ] && [ "$1" = "--myversion" ]; then
+ elif [ "$1" ] && [ "$1" = "-m" ]; then
#if [ -d /tmp/immudex ]; then
# (cd /tmp/immudex && git pull > /dev/null 2>&1)
#else
#fi
#(cd /tmp/immudex && git show $(cat /run/live/medium/live/version))
cat /run/live/medium/live/changelog;
- elif [ "$1" ] && [ "$1" = "--packages-upgradable" ]; then
+ elif [ "$1" ] && [ "$1" = "-p" ]; then
apt update;
- if [ "$2" ] && [ "$2" = "--security" ]; then
- apt list --upgradable | grep 'security';
- else
- apt list --upgradable;
- fi
- elif [ "$1" ] && [ "$1" = "--compilation-date" ]; then
+ apt list --upgradable;
+ elif [ "$1" ] && [ "$1" = "-s" ]; then
+ apt update;
+ apt list --upgradable | grep 'security';
+ elif [ "$1" ] && [ "$1" = "-d" ]; then
eval $(grep '^COMPILATION_DATE' /run/live/medium/live/changelog);
echo "Image was created: $COMPILATION_DATE";
else
function help() {
echo "Script returns first 7 signs of immudex commit ID.";
echo;
- echo "Usage: immudex-version [--help] [--version]";
+ echo "Usage: immudex-version [-h] [-v]";
echo;
echo "Options:";
- echo " --help Print this message.";
- echo " --version Print information about version, author and copyrights.";
+ echo " -h Print this message.";
+ echo " -v Print information about version, author and copyrights.";
echo;
echo "Files:";
echo " /run/live/medium/live/changelog Stores information about currently running immudex image.";
}
function version(){
- echo "immudex-version 1.0";
+ echo "immudex-version 1.1";
echo;
echo "Copyright (C) 2026 morketsmerke.org";
echo "This is free software; see the source for copying conditions. There is NO";
}
if [ "$1" ]; then
- if [ "$1" = "--help" ]; then
+ if [ "$1" = "-h" ]; then
help;
exit 0;
- elif [ "$1" = "--version" ]; then
+ elif [ "$1" = "-v" ]; then
version;
exit 0;
fi
from table in requested format: videoQualityID+audioQualityID. There are
a hint. Script is half-interactive.
-Usage: immudex-ytplay [--search='keyword1...keywordN' --video | --audio] [--video youtube_link] [--audio youtube_link] [--help] [--version]
+Usage: immudex-ytplay [-a youtube_link] [-h] [-i] [-s 'keyword1...keywordN' -v | -a] [-v youtube_link]
Options:
- --search='keyword1...keywordN' --video/--audio Search given keywords on YouTube and play video or audiotrack.
- --video YouTube_Link Play YouTube video.
- --audio YouTube_Link Play only YouTube video audiotrack.
- --help Print this message.
- --version Print information about version, author and copyrights.
+ -a YouTube_Link Play only YouTube video audiotrack.
+ -h Print this message.
+ -i Print information about version, author and copyrights.
+ -s 'keyword1...keywordN' -v/-a Search given keywords on YouTube and play video or audiotrack.
+ -v YouTube_Link Play YouTube video.
Examples:
- immudex-ytplay --search='lofi' --audio Script will be search a lofi keyword in YouTube and play only audio tracks from choosen video.
- immudex-ytplay --video https://youtube.com/watch?v=... Script will be play a video from given link, of course is publicly available.
- immudex-ytplay --audio https://youtube.com/watch?v=... Script will be play a audio track from given video link. The principle of video playback also applies here.
+ immudex-ytplay -s 'lofi' -a Script will be search a lofi keyword in YouTube and play only audio tracks from choosen video.
+ immudex-ytplay -v https://youtube.com/watch?v=... Script will be play a video from given link, of course is publicly available.
+ immudex-ytplay -a https://youtube.com/watch?v=... Script will be play a audio track from given video link. The principle of video playback also applies here.
Report bugs to <xf0r3m@gmail.com>''')
return f
if len(sys.argv) == 2:
- if sys.argv[1] == '--help':
+ if sys.argv[1] == '-h':
usage()
sys.exit(0)
- elif sys.argv[1] == '--version':
+ elif sys.argv[1] == '-i':
version()
sys.exit(0)
usage()
sys.exit(2)
-option=sys.argv[1].split("=", 1)[0]
+option=sys.argv[1]
-if option == '--search':
+if option == '-s':
if len(sys.argv) > 2:
- if sys.argv[2] == '--video':
+ if sys.argv[2] == '-v':
mode = "video"
- elif sys.argv[2] == '--audio':
+ elif sys.argv[2] == '-a':
mode = "audio"
else:
usage()
sys.exit(2)
- keywords = sys.argv[1].split("=", 1)[1]
+ keywords = sys.argv[1]
video = ytSearch(keywords)
subprocess.run('clear')
usage()
sys.exit(2)
-elif sys.argv[1] == '--audio':
+elif sys.argv[1] == '-a':
if len(sys.argv) > 2:
link=sys.argv[2]
ytFormat="--no-video"
usage()
sys.exit(2)
-elif sys.argv[1] == '--video':
+elif sys.argv[1] == '-v':
if len(sys.argv) > 2:
link=sys.argv[2]
videoID=link[-11:]