some name changes

This commit is contained in:
6543 2018-05-21 00:25:27 +02:00
parent 6076f1372d
commit 002487c5d1
3 changed files with 78 additions and 78 deletions

View File

@ -8,16 +8,16 @@
modus_default="update_pxe" modus_default="update_pxe"


#CD/DVD #CD/DVD
#entweder iso_source oder filesystem_source alls quelle #entweder iso_source oder squashfs_path alls quelle
# -> bei iso gen erforderlich! # -> bei iso gen erforderlich!
iso_source="/data/remaster/desinfect-2017.iso" iso_source="/data/remaster/desinfect-2017.iso"
#destination optinal #destination optinal
iso_destination="/data/remaster/result/custom_desinfect_`date '+%Y-%m-%d'`.iso" iso_aim="/data/remaster/result/custom_desinfect_`date '+%Y-%m-%d'`.iso"
iso_lable="DESINFECT_`date '+%Y-%m-%d'`" iso_lable="DESINFECT_`date '+%Y-%m-%d'`"


#Filesystem (for pxe) #Filesystem (for pxe)
#entweder iso_source oder filesystem_source alls quelle #entweder iso_source oder squashfs_path alls quelle
filesystem_source="/data/remaster/result/filesystem.squashfs" squashfs_path="/data/remaster/result/filesystem.squashfs"


#Network #Network
proxy_host="proxy.local" proxy_host="proxy.local"
@ -26,7 +26,7 @@ domain="local"
nameserver="10.x.x.2,10.x.x.1" nameserver="10.x.x.2,10.x.x.1"


#remaster_script #remaster_script
distro="desinfect2017" project="desinfect.17"


#LOG #LOG
log_file="/data/remaster/logs/`date '+%Y-%m-%d'`.log" log_file="/data/remaster/logs/`date '+%Y-%m-%d'`.log"

View File

@ -6,21 +6,21 @@
function check_config() { function check_config() {


#Project #Project
[ -f "<LIBDIR>/proj/$distro" ] || { [ -f "<LIBDIR>/proj/$project" ] || {
echo "No Project \"$distro\" is not supported" echo "No Project \"$project\" is not supported"
return 3 return 3
} }


#live-system files #live-system files
if [ -f "$iso_source" ]; then if [ -f "$iso_source" ]; then
if [ -n "$iso_destination" ] && [ -d "${iso_destination%/*}" ]; then if [ -n "$iso_aim" ] && [ -d "${iso_aim%/*}" ]; then
#Lable #Lable
[ -z "$iso_lable" ] && iso_lable="$distro" [ -z "$iso_lable" ] && iso_lable="$project"


echo 'iso_source -> iso_destination' echo 'iso_source -> iso_aim'
echo 'iso_source -> squashfs [optinal]' echo 'iso_source -> squashfs [optinal]'
else else
if [ -n "$filesystem_source" ] && [ -d "${filesystem_source%/*}" ]; then if [ -n "$squashfs_path" ] && [ -d "${squashfs_path%/*}" ]; then
echo 'iso_source -> squashfs' echo 'iso_source -> squashfs'
else else
# ERROR # ERROR
@ -29,8 +29,8 @@ function check_config() {
fi fi
fi fi
else else
if [ -f "$filesystem_source" ]; then if [ -f "$squashfs_path" ]; then
if [ -n "$iso_destination" ]; then if [ -n "$iso_aim" ]; then
# ERROR # ERROR
echo "only Squashfs source in Settings, cant creat ISO" echo "only Squashfs source in Settings, cant creat ISO"
return 3 return 3

View File

@ -63,12 +63,12 @@ function main_renew() {
echo "### S e t t i n g s ###" >> "$log_file" echo "### S e t t i n g s ###" >> "$log_file"
echo "#CD/DVD" >> "$log_file" echo "#CD/DVD" >> "$log_file"
echo "iso_source=\"$iso_source\"" >> "$log_file" echo "iso_source=\"$iso_source\"" >> "$log_file"
echo "iso_destination=\"$iso_destination\"" >> "$log_file" echo "iso_aim=\"$iso_aim\"" >> "$log_file"
echo "iso_lable=\"$iso_lable\"" >> "$log_file" echo "iso_lable=\"$iso_lable\"" >> "$log_file"
echo >> "$log_file" echo >> "$log_file"


echo "#Filesystem (for pxe)" >> "$log_file" echo "#Filesystem (for pxe)" >> "$log_file"
echo "filesystem_source=\"$filesystem_source\"" >> "$log_file" echo "squashfs_path=\"$squashfs_path\"" >> "$log_file"
echo >> "$log_file" echo >> "$log_file"


echo "#Network" >> "$log_file" echo "#Network" >> "$log_file"
@ -79,7 +79,7 @@ function main_renew() {
echo >> "$log_file" echo >> "$log_file"


echo "#remaster_script" >> "$log_file" echo "#remaster_script" >> "$log_file"
echo "distro=\"$distro\"" >> "$log_file" echo "project=\"$project\"" >> "$log_file"
echo >> "$log_file" echo >> "$log_file"


echo "log_file=\"$log_file\"" echo "log_file=\"$log_file\""
@ -111,7 +111,7 @@ function main_renew() {


check_update >> "$log_file" check_update >> "$log_file"


[ "$distro" != "" ] && distro="_$distro" [ "$project" != "" ] && project="_$project"


# 2. Entpacke ISO # 2. Entpacke ISO
iso_extract "$iso_source" "$iso_extr_dir" iso_extract "$iso_source" "$iso_extr_dir"
@ -128,12 +128,12 @@ function main_renew() {


# 4. Vorbereiten für chroot-Umgebung: # 4. Vorbereiten für chroot-Umgebung:


chroot_initial$distro "$chroot_path" >> "$log_file" chroot_initial$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 5. Setzen der Netzwerk-Einstellungen: # 5. Setzen der Netzwerk-Einstellungen:
[ -n "$proxy_host" ] && { [ -n "$proxy_host" ] && {
proxy_enable$distro "$chroot_path" "$proxy_host" "$proxy_port" >> "$log_file" proxy_enable$project "$chroot_path" "$proxy_host" "$proxy_port" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
} }


@ -141,12 +141,12 @@ function main_renew() {
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 6. Updaten von Desinfec't: # 6. Updaten von Desinfec't:
os_update$distro "$chroot_path" >> "$log_file" os_update$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 7. Installation optionaler Tools: # 7. Installation optionaler Tools:


tools_add$distro "$chroot_path" "$tools_list" >> "$log_file" tools_add$project "$chroot_path" "$tools_list" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


#addo ClamAV to conky_info #addo ClamAV to conky_info
@ -169,7 +169,7 @@ function main_renew() {


# 9. Umount - Chroot Umgebung auflösen # 9. Umount - Chroot Umgebung auflösen


chroot_umount$distro "$chroot_path" >> "$log_file" chroot_umount$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


#Überprüfen ob alles ausgehängt wurde #Überprüfen ob alles ausgehängt wurde
@ -186,23 +186,23 @@ function main_renew() {
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# wenn iso gewünscht # wenn iso gewünscht
[ "$iso_destination" != "" ] && { [ "$iso_aim" != "" ] && {
iso_create$distro "$chroot_path" "$iso_extr_dir" "$iso_destination" "$iso_lable" >> "$log_file" iso_create$project "$chroot_path" "$iso_extr_dir" "$iso_aim" "$iso_lable" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
} }


# wenn filesystem gewünscht # wenn filesystem gewünscht
[ "$filesystem_source" != "" ] && { [ "$squashfs_path" != "" ] && {
#wen bereits forhanden dann löschen #wen bereits forhanden dann löschen
[ -f "$filesystem_source" ] && rm "$filesystem_source" [ -f "$squashfs_path" ] && rm "$squashfs_path"
cp "$filesystem_img" "$filesystem_source" >> "$log_file" cp "$filesystem_img" "$squashfs_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


chmod 666 "$filesystem_source" chmod 666 "$squashfs_path"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
} }


chmod 666 "$iso_destination" "$filesystem_img" >> "$log_file" chmod 666 "$iso_aim" "$filesystem_img" >> "$log_file"


workspace_erase "$iso_extr_dir/" "$chroot_path/" >> "$log_file" workspace_erase "$iso_extr_dir/" "$chroot_path/" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
@ -226,7 +226,7 @@ function main_update_pxe() {


echo "### S e t t i n g s ###" >> "$log_file" echo "### S e t t i n g s ###" >> "$log_file"
echo "#Filesystem (for pxe)" >> "$log_file" echo "#Filesystem (for pxe)" >> "$log_file"
echo "filesystem_source=\"$filesystem_source\"" echo "squashfs_path=\"$squashfs_path\""
echo >> "$log_file" echo >> "$log_file"


echo "#Network" >> "$log_file" echo "#Network" >> "$log_file"
@ -235,7 +235,7 @@ function main_update_pxe() {
echo >> "$log_file" echo >> "$log_file"


echo "#remaster_script" >> "$log_file" echo "#remaster_script" >> "$log_file"
echo "distro=\"$distro\"" >> "$log_file" echo "project=\"$project\"" >> "$log_file"
echo >> "$log_file" echo >> "$log_file"


echo "log_file=\"$log_file\"" echo "log_file=\"$log_file\""
@ -266,20 +266,20 @@ function main_update_pxe() {
check_config >> "$log_file" check_config >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


[ "$distro" != "" ] && distro="_$distro" [ "$project" != "" ] && project="_$project"


# 1. Entpacken der Dateien des Live-Systems # 1. Entpacken der Dateien des Live-Systems
[ -e "$filesystem_source" ] || { [ -e "$squashfs_path" ] || {
echo "### ERROR ### \"$filesystem_source\" does not exist!" >> "$log_file" echo "### ERROR ### \"$squashfs_path\" does not exist!" >> "$log_file"
on_exit 15 >> "$log_file" on_exit 15 >> "$log_file"
} }


filesystem_extract "$filesystem_source" "$chroot_path" >> "$log_file" filesystem_extract "$squashfs_path" "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 2. Vorbereiten für chroot-Umgebung: # 2. Vorbereiten für chroot-Umgebung:


chroot_initial$distro "$chroot_path" >> "$log_file" chroot_initial$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 3. Setzen der Netzwerk-Einstellungen: # 3. Setzen der Netzwerk-Einstellungen:
@ -288,7 +288,7 @@ function main_update_pxe() {
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 4. Updaten von Desinfec't: # 4. Updaten von Desinfec't:
os_update$distro "$chroot_path" >> "$log_file" os_update$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 5. Manuelle Aktionen - deaktiviert # 5. Manuelle Aktionen - deaktiviert
@ -301,7 +301,7 @@ function main_update_pxe() {


# 6. Umount - Chroot Umgebung auflösen # 6. Umount - Chroot Umgebung auflösen


chroot_umount$distro "$chroot_path" >> "$log_file" chroot_umount$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


#Überprüfen ob alles ausgehängt wurde #Überprüfen ob alles ausgehängt wurde
@ -311,13 +311,13 @@ function main_update_pxe() {
} }


# 5. Packen und Ersetzen der Dateien # 5. Packen und Ersetzen der Dateien
rm "$filesystem_source" >> "$log_file" rm "$squashfs_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


filesystem_pack "$chroot_path" "$filesystem_source" >> "$log_file" filesystem_pack "$chroot_path" "$squashfs_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


chmod 777 "$filesystem_source" >> "$log_file" chmod 777 "$squashfs_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


workspace_erase "$chroot_path/" >> "$log_file" workspace_erase "$chroot_path/" >> "$log_file"
@ -343,12 +343,12 @@ function main_update_iso() {
echo "### S e t t i n g s ###" >> "$log_file" echo "### S e t t i n g s ###" >> "$log_file"
echo "#CD/DVD" >> "$log_file" echo "#CD/DVD" >> "$log_file"
echo "iso_source=\"$iso_source\"" >> "$log_file" echo "iso_source=\"$iso_source\"" >> "$log_file"
echo "iso_destination=\"$iso_destination\"" >> "$log_file" echo "iso_aim=\"$iso_aim\"" >> "$log_file"
echo "iso_lable=\"$iso_lable\"" >> "$log_file" echo "iso_lable=\"$iso_lable\"" >> "$log_file"
echo >> "$log_file" echo >> "$log_file"


echo "#Filesystem (for pxe)" >> "$log_file" echo "#Filesystem (for pxe)" >> "$log_file"
echo "filesystem_source=\"$filesystem_source\"" >> "$log_file" echo "squashfs_path=\"$squashfs_path\"" >> "$log_file"
echo >> "$log_file" echo >> "$log_file"


echo "#Network" >> "$log_file" echo "#Network" >> "$log_file"
@ -359,7 +359,7 @@ function main_update_iso() {
echo >> "$log_file" echo >> "$log_file"


echo "#remaster_script" >> "$log_file" echo "#remaster_script" >> "$log_file"
echo "distro=\"$distro\"" >> "$log_file" echo "project=\"$project\"" >> "$log_file"
echo >> "$log_file" echo >> "$log_file"


echo "log_file=\"$log_file\"" echo "log_file=\"$log_file\""
@ -391,7 +391,7 @@ function main_update_iso() {
check_config >> "$log_file" check_config >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


[ "$distro" != "" ] && distro="_$distro" [ "$project" != "" ] && project="_$project"


# 2. Entpacke ISO # 2. Entpacke ISO
iso_extract "$iso_source" "$iso_extr_dir" iso_extract "$iso_source" "$iso_extr_dir"
@ -418,12 +418,12 @@ function main_update_iso() {


# 4. Vorbereiten für chroot-Umgebung: # 4. Vorbereiten für chroot-Umgebung:


chroot_initial$distro "$chroot_path" >> "$log_file" chroot_initial$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 5. Setzen der Netzwerk-Einstellungen: # 5. Setzen der Netzwerk-Einstellungen:
[ -n "$proxy_host" ] && { [ -n "$proxy_host" ] && {
proxy_enable$distro "$chroot_path" "$proxy_host" "$proxy_port" >> "$log_file" proxy_enable$project "$chroot_path" "$proxy_host" "$proxy_port" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
} }


@ -431,12 +431,12 @@ function main_update_iso() {
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 6. Updaten von Desinfec't: # 6. Updaten von Desinfec't:
os_update$distro "$chroot_path" >> "$log_file" os_update$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# 7. Installation optionaler Tools: # 7. Installation optionaler Tools:


tools_add$distro "$chroot_path" "$tools_list" >> "$log_file" tools_add$project "$chroot_path" "$tools_list" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


#addo ClamAV to conky_info #addo ClamAV to conky_info
@ -454,7 +454,7 @@ function main_update_iso() {


# 9. Umount - Chroot Umgebung auflösen # 9. Umount - Chroot Umgebung auflösen


chroot_umount$distro "$chroot_path" >> "$log_file" chroot_umount$project "$chroot_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


#Überprüfen ob alles ausgehängt wurde #Überprüfen ob alles ausgehängt wurde
@ -471,23 +471,23 @@ function main_update_iso() {
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


# wenn iso gewünscht # wenn iso gewünscht
[ "$iso_destination" != "" ] && { [ "$iso_aim" != "" ] && {
iso_create$distro "$chroot_path" "$iso_extr_dir" "$iso_destination" "$iso_lable" >> "$log_file" iso_create$project "$chroot_path" "$iso_extr_dir" "$iso_aim" "$iso_lable" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
} }


# wenn filesystem gewünscht # wenn filesystem gewünscht
[ "$filesystem_source" != "" ] && { [ "$squashfs_path" != "" ] && {
#wen bereits forhanden dann löschen #wen bereits forhanden dann löschen
[ -f "$filesystem_source" ] && rm "$filesystem_source" [ -f "$squashfs_path" ] && rm "$squashfs_path"
cp "$filesystem_img" "$filesystem_source" >> "$log_file" cp "$filesystem_img" "$squashfs_path" >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


chmod 666 "$filesystem_source" chmod 666 "$squashfs_path"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"
} }


chmod 666 "$iso_destination" "$filesystem_img" >> "$log_file" chmod 666 "$iso_aim" "$filesystem_img" >> "$log_file"


#11. End #11. End
workspace_erase "$iso_extr_dir/" "$chroot_path/" >> "$log_file" workspace_erase "$iso_extr_dir/" "$chroot_path/" >> "$log_file"
@ -545,16 +545,16 @@ source <LIBDIR>/func/filesystem_get_type
#iso_extract [iso_source] [iso_extr_dir] #iso_extract [iso_source] [iso_extr_dir]
source <LIBDIR>/func/iso_extract source <LIBDIR>/func/iso_extract


#iso_create [chroot_path] [iso_extr_dir] [iso_destination] [iso_lable] #iso_create [chroot_path] [iso_extr_dir] [iso_aim] [iso_lable]
source <LIBDIR>/func/iso_create source <LIBDIR>/func/iso_create


#iso_create_desinfect2015 [chroot_path] [iso_extr_dir] [iso_destination] [iso_lable] #iso_create_desinfect2015 [chroot_path] [iso_extr_dir] [iso_aim] [iso_lable]
function iso_create_desinfect2015() { function iso_create_desinfect2015() {
echo "prepere iso folder ... " echo "prepere iso folder ... "


chroot_path="$1" chroot_path="$1"
iso_extr_dir="$2" iso_extr_dir="$2"
iso_destination="$3" iso_aim="$3"
iso_lable="$4" iso_lable="$4"


#desinfect #desinfect
@ -563,16 +563,16 @@ function iso_create_desinfect2015() {


echo "done" echo "done"


iso_create "$chroot_path" "$iso_extr_dir" "$iso_destination" "$iso_lable" iso_create "$chroot_path" "$iso_extr_dir" "$iso_aim" "$iso_lable"
} }


#iso_create_desinfect2016 [chroot_path] [iso_extr_dir] [iso_destination] [iso_lable] #iso_create_desinfect2016 [chroot_path] [iso_extr_dir] [iso_aim] [iso_lable]
function iso_create_desinfect2016() { function iso_create_desinfect2016() {
#echo "prepere iso folder ... " #echo "prepere iso folder ... "


chroot_path="$1" chroot_path="$1"
iso_extr_dir="$2" iso_extr_dir="$2"
iso_destination="$3" iso_aim="$3"
iso_lable="$4" iso_lable="$4"


#desinfect #desinfect
@ -581,19 +581,19 @@ function iso_create_desinfect2016() {


#echo "done" #echo "done"


iso_create "$chroot_path" "$iso_extr_dir" "$iso_destination" "$iso_lable" iso_create "$chroot_path" "$iso_extr_dir" "$iso_aim" "$iso_lable"
} }


#iso_create_desinfect2017 [chroot_path] [iso_extr_dir] [iso_destination] [iso_lable] #iso_create_desinfect.17 [chroot_path] [iso_extr_dir] [iso_aim] [iso_lable]
function iso_create_desinfect2017() { function iso_create_desinfect.17() {
#echo "prepere iso folder ... " #echo "prepere iso folder ... "


chroot_path="$1" chroot_path="$1"
iso_extr_dir="$2" iso_extr_dir="$2"
iso_destination="$3" iso_aim="$3"
iso_lable="$4" iso_lable="$4"


iso_create "$chroot_path" "$iso_extr_dir" "$iso_destination" "$iso_lable" iso_create "$chroot_path" "$iso_extr_dir" "$iso_aim" "$iso_lable"
} }


### chroot ### ### chroot ###
@ -645,8 +645,8 @@ function chroot_initial_desinfect2016() {
echo "done" echo "done"
} }


#chroot_initial_desinfect2017 [chroot_dir] #chroot_initial_desinfect.17 [chroot_dir]
function chroot_initial_desinfect2017() { function chroot_initial_desinfect.17() {
#$1 = chroot dir #$1 = chroot dir


chroot_initial "$1" chroot_initial "$1"
@ -707,8 +707,8 @@ function chroot_umount_desinfect2016() {
echo "done" echo "done"
} }


#chroot_umount_desinfect2017 [chroot_dir] #chroot_umount_desinfect.17 [chroot_dir]
function chroot_umount_desinfect2017() { function chroot_umount_desinfect.17() {
#call main mount #call main mount
chroot_umount "$1" chroot_umount "$1"
} }
@ -835,8 +835,8 @@ function proxy_enable_desinfect2016() {
echo "done" echo "done"
} }


#proxy_enable_desinfect2017 [chroot_dir] [proxy_host] [proxy_port] #proxy_enable_desinfect.17 [chroot_dir] [proxy_host] [proxy_port]
function proxy_enable_desinfect2017() { function proxy_enable_desinfect.17() {


proxy_enable $1 $2 $3 proxy_enable $1 $2 $3


@ -1248,8 +1248,8 @@ function os_update_desinfect2016() {
echo "update virus definitions done" echo "update virus definitions done"
} }


#os_update_desinfect2017 [chroot_dir] #os_update_desinfect.17 [chroot_dir]
function os_update_desinfect2017() { function os_update_desinfect.17() {
#$1 = chroot directory #$1 = chroot directory


chroot_dir="$1" chroot_dir="$1"
@ -1370,8 +1370,8 @@ function tools_add_desinfect2016() {
sourcelist_desinfect_set_nomal2016 "$chroot_dir" sourcelist_desinfect_set_nomal2016 "$chroot_dir"
} }


#tools_add_desinfect2017 [chroot_dir] [tools_list] #tools_add_desinfect.17 [chroot_dir] [tools_list]
function tools_add_desinfect2017() { function tools_add_desinfect.17() {
#$1 = chroot directory #$1 = chroot directory
chroot_dir="$1" chroot_dir="$1"
tools_list="$2" tools_list="$2"