standalone executable

This commit is contained in:
6543 2018-05-11 00:04:02 +02:00
parent 401abf1f4b
commit 2513b645c1
20 changed files with 35 additions and 52 deletions

View File

@ -14,7 +14,7 @@ function check_dependency() {
return 0 return 0
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param check_dependency $@
$1
} }

View File

@ -11,7 +11,7 @@ function check_user() {
} }
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param check_user $@
$1
} }

View File

@ -16,7 +16,7 @@ function chroot_clean() {
echo "done" echo "done"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param chroot_clean $@
$1
} }

View File

@ -25,7 +25,7 @@ function chroot_initial() {
echo "done" echo "done"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param chroot_initial $@
$1
} }

View File

@ -16,7 +16,7 @@ function chroot_is_mounted() {
fi fi
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param chroot_is_mounted $@
$1
} }

View File

@ -23,7 +23,7 @@ function chroot_sh() {
chroot "$chroot_dir" /bin/bash --login -c ". /tmp/env.sh; $command" chroot "$chroot_dir" /bin/bash --login -c ". /tmp/env.sh; $command"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param chroot_sh $@
$1
} }

View File

@ -25,7 +25,7 @@ function chroot_umount() {
echo "done" echo "done"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param chroot_umount $@
$1
} }

View File

@ -53,13 +53,16 @@ function error_code() {
22) 22)
echo "wrong filesystem" echo "wrong filesystem"
;; ;;
all)
error_code
;;
*) *)
echo $'No Defined Error Code.\nPerhaps an Error ocure on a Command wich was started by this Skritp.' echo $'No Defined Error Code.\nPerhaps an Error ocure on a Command wich was started by this Skritp.'
;; ;;
esac esac
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param error_code $@
$1
} }

View File

@ -42,7 +42,7 @@ function filesystem_extract() {
echo "done" echo "done"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param filesystem_extract $@
$1
} }

View File

@ -9,7 +9,7 @@ function filesystem_get_type() {
echo ${fs_aTemp[9]} echo ${fs_aTemp[9]}
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param filesystem_get_type $@
$1
} }

View File

@ -31,7 +31,7 @@ function filesystem_pack() {
echo "done" echo "done"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param filesystem_pack $@
$1
} }

View File

@ -25,7 +25,7 @@ function iso_create() {
echo "done" echo "done"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param iso_create $@
$1
} }

View File

@ -46,7 +46,7 @@ function iso_extract() {
echo "done" echo "done"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param iso_extract $@
$1
} }

View File

@ -28,7 +28,7 @@ function on_exit() {
exit $1 exit $1
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param on_exit $@
$1
} }

View File

@ -13,7 +13,7 @@ function workspace_erase() {
echo "done" echo "done"
} }


#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param workspace_erase $@
$1
} }

View File

@ -10,7 +10,7 @@






#this func is standalone executable
[ -n "$1" ] && { [ -n "$1" ] && {
echo param xrdp $@
$1
} }

View File

@ -35,8 +35,3 @@ function os_update() {


echo "done" echo "done"
} }

[ -n "$1" ] && {
echo param
$1
}

View File

@ -7,8 +7,3 @@
source <LIBDIR>/proj/ubuntu.16.04 source <LIBDIR>/proj/ubuntu.16.04


TEST2="na" TEST2="na"

[ -n "$1" ] && {
echo param
$1
}

View File

@ -7,8 +7,3 @@
#################################### ####################################
# . -> debian # . -> debian
source <LIBDIR>/proj/debian source <LIBDIR>/proj/debian

[ -n "$1" ] && {
echo param
$1
}

View File

@ -5,8 +5,3 @@
#ubuntu.16.04 #ubuntu.16.04
# . -> ubuntu -> debian # . -> ubuntu -> debian
source <LIBDIR>/proj/ubuntu source <LIBDIR>/proj/ubuntu

[ -n "$1" ] && {
echo param
$1
}