]> gitweb.morketsmerke.org Git - immudex.git/commitdiff
Podział narzędzi autorskich na zwykłe (tools/bin) oraz wymagające uprawnień administr...
authorxf0r3m <jakubstasinski@protonmail.com>
Thu, 4 Jan 2024 06:40:30 +0000 (07:40 +0100)
committerxf0r3m <jakubstasinski@protonmail.com>
Thu, 4 Jan 2024 06:40:57 +0000 (07:40 +0100)
22 files changed:
tools/bin/idle-clic [moved from tools/idle-clic with 100% similarity]
tools/bin/immudex-autostart-x4notes [moved from tools/immudex-autostart-x4notes with 100% similarity]
tools/bin/immudex-branch [moved from tools/immudex-branch with 100% similarity]
tools/bin/immudex-import-gpgkeys [moved from tools/immudex-import-gpgkeys with 100% similarity]
tools/bin/immudex-import-sshkeys [moved from tools/immudex-import-sshkeys with 100% similarity]
tools/bin/immudex-meteo [moved from tools/immudex-meteo with 100% similarity]
tools/bin/immudex-morketsmerke [moved from tools/immudex-morketsmerke with 100% similarity]
tools/bin/immudex-motd2 [moved from tools/immudex-motd2 with 100% similarity]
tools/bin/immudex-pl [moved from tools/immudex-pl with 100% similarity]
tools/bin/immudex-secured-firefox [moved from tools/immudex-secured-firefox with 100% similarity]
tools/bin/immudex-shoutcasts [moved from tools/immudex-shoutcasts with 100% similarity]
tools/bin/immudex-unlock-ds [moved from tools/immudex-unlock-ds with 100% similarity]
tools/bin/immudex-version [moved from tools/immudex-version with 100% similarity]
tools/bin/immudex-ytplay [moved from tools/immudex-ytplay with 100% similarity]
tools/bin/library.sh [moved from tools/library.sh with 100% similarity]
tools/bin/sync.sh [moved from tools/sync.sh with 100% similarity]
tools/immudex-create-media [deleted file]
tools/sbin/immudex-crypt [moved from tools/immudex-crypt with 100% similarity]
tools/sbin/immudex-hostname [moved from tools/immudex-hostname with 100% similarity]
tools/sbin/immudex-install [moved from tools/immudex-install with 100% similarity]
tools/sbin/immudex-padlock [moved from tools/immudex-padlock with 100% similarity]
tools/sbin/immudex-upgrade [moved from tools/immudex-upgrade with 100% similarity]

similarity index 100%
rename from tools/idle-clic
rename to tools/bin/idle-clic
similarity index 100%
rename from tools/immudex-meteo
rename to tools/bin/immudex-meteo
similarity index 100%
rename from tools/immudex-motd2
rename to tools/bin/immudex-motd2
similarity index 100%
rename from tools/immudex-pl
rename to tools/bin/immudex-pl
similarity index 100%
rename from tools/library.sh
rename to tools/bin/library.sh
similarity index 100%
rename from tools/sync.sh
rename to tools/bin/sync.sh
diff --git a/tools/immudex-create-media b/tools/immudex-create-media
deleted file mode 100755 (executable)
index 809d766..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-#!/bin/bash
-
-GREEN="\e[32m";
-YELLOW="\e[33m";
-ENDCOLOR="\e[0m";
-
-function help() {
-  echo "immudex-create-media - script used for write iso image to usb drive(mainly)";
-  echo "@ 2023 morketsmerke.org";
-  echo "Options:";
-  echo "  --i386-efi - creating 32-bit EFI usb drive with iso image";
-  echo "  (comapatible with immudex only iso images)";
-  echo "  --nuke - write 0 to 1st megabyte of disk";
-  echo "Usage:";
-  echo "  $ create_media [--i386-efi] [--nuke] <usb_disk> [iso_image]";
-}
-
-if [ "$1" ] && [ "$1" = "--i386-efi" ]; then target="i386-efi"; shift; fi
-if [ "$1" ] && [ "$1" = "--nuke" ]; then target="nuke"; shift; fi
-if [ "$1" ] && echo $1 | grep -Eq '/dev/(sd[a-z]|vd[a-z]|mmcblk[0-9])'; then
-  disk=$1; shift;
-else
-  help;
-  exit 1;
-fi
-if [ ! "$target" ] || [ "$target" != "nuke" ]; then
-  if [ "$1" ] && file $1 | grep -q 'ISO 9660'; then 
-    iso=$1;
-  else
-    help;
-    exit 1;
-  fi
-fi
-
-if [ "$target" = "i386-efi" ]; then
-  echo -n "Writing zeros to 1st megabyte on disk..."; 
-  sudo dd if=/dev/zero bs=1M of=$disk count=1 > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-  echo -n "Creating MS-DOS partitionig scheme on disk..."; 
-  sudo parted $disk mklabel msdos > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-  
-  echo -n "Creating FAT-32 partition...";
-  sudo parted $disk mkpart primary fat32 1 100%Free > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-  echo -n "Creating VFAT filesystem on partition...";
-  sudo mkfs.vfat ${disk}1 > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-  echo -n "Creating /mnt/usb directory...";
-  sudo mkdir /mnt/usb > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]";
-  else echo -e "[${YELLOW}Directory exist!${ENDCOLOR}]"; fi
-  
-  echo -n "Mounting VFAT partition on /mnt/usb...";
-  sudo mount ${disk}1 /mnt/usb > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-  echo -n "Instalation GRUB on disk...";
-  sudo grub-install --target=i386-efi --efi-directory=/mnt/usb --boot-directory=/mnt/usb/boot --bootloader-id=boot --removable > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-  echo -n "Creating /mnt/iso directory...";
-  sudo mkdir /mnt/iso > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]";
-  else echo -e "[${YELLOW}Directory exist!${ENDCOLOR}]"; fi
-
-  echo -n "Mounting iso file on /mnt/iso...";
-  sudo mount $iso /mnt/iso > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-  echo -n "Copying grub config files to the disk...";
-  sudo cp /mnt/iso/boot/grub/font.pf2 /mnt/usb/boot/grub > /dev/null 2>&1;
-  sudo cp /mnt/iso/boot/grub/grub.cfg /mnt/usb/boot/grub > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-  echo -n "Copying immudex files to the disk..."; 
-  sudo cp -r /mnt/iso/live /mnt/usb > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-  
-  echo -n "Creating empty DEBIAN file...";
-  sudo touch /mnt/usb/DEBIAN > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-  
-  echo -n "Umounting all mounted filesystems...";
-  sudo umount /mnt/* > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-elif [ "$target" = "nuke" ]; then
-  echo -n "Writing zeros to 1st megabyte on disk..."; 
-  sudo dd if=/dev/zero bs=1M of=$disk count=1 > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-else
-  echo -n "Writing zeros to 1st megabyte on disk..."; 
-  sudo dd if=/dev/zero bs=1M of=$disk count=1 > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-
-  echo -n "Writing iso image to the disk..."
-  sudo dd if=$iso bs=1M of=$disk > /dev/null 2>&1;
-  if [ $? -eq 0 ]; then echo -e "[${GREEN}OK${ENDCOLOR}]"; fi
-fi 
similarity index 100%
rename from tools/immudex-crypt
rename to tools/sbin/immudex-crypt