exec singel func
This commit is contained in:
5
src/func/check_dependency
Normal file → Executable file
5
src/func/check_dependency
Normal file → Executable file
@ -13,3 +13,8 @@ function check_dependency() {
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/check_user
Normal file → Executable file
5
src/func/check_user
Normal file → Executable file
@ -10,3 +10,8 @@ function check_user() {
|
||||
return 10
|
||||
}
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/chroot_clean
Normal file → Executable file
5
src/func/chroot_clean
Normal file → Executable file
@ -15,3 +15,8 @@ function chroot_clean() {
|
||||
|
||||
echo "done"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/chroot_initial
Normal file → Executable file
5
src/func/chroot_initial
Normal file → Executable file
@ -24,3 +24,8 @@ function chroot_initial() {
|
||||
|
||||
echo "done"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/chroot_is_mounted
Normal file → Executable file
5
src/func/chroot_is_mounted
Normal file → Executable file
@ -15,3 +15,8 @@ function chroot_is_mounted() {
|
||||
echo "false"
|
||||
fi
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/chroot_sh
Normal file → Executable file
5
src/func/chroot_sh
Normal file → Executable file
@ -22,3 +22,8 @@ function chroot_sh() {
|
||||
|
||||
chroot "$chroot_dir" /bin/bash --login -c ". /tmp/env.sh; $command"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/chroot_umount
Normal file → Executable file
5
src/func/chroot_umount
Normal file → Executable file
@ -24,3 +24,8 @@ function chroot_umount() {
|
||||
|
||||
echo "done"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/error_code
Normal file → Executable file
5
src/func/error_code
Normal file → Executable file
@ -58,3 +58,8 @@ function error_code() {
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/filesystem_extract
Normal file → Executable file
5
src/func/filesystem_extract
Normal file → Executable file
@ -41,3 +41,8 @@ function filesystem_extract() {
|
||||
|
||||
echo "done"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/filesystem_get_type
Normal file → Executable file
5
src/func/filesystem_get_type
Normal file → Executable file
@ -8,3 +8,8 @@ function filesystem_get_type() {
|
||||
fs_aTemp=(`df -T "$1"`)
|
||||
echo ${fs_aTemp[9]}
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/filesystem_pack
Normal file → Executable file
5
src/func/filesystem_pack
Normal file → Executable file
@ -30,3 +30,8 @@ function filesystem_pack() {
|
||||
|
||||
echo "done"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/iso_create
Normal file → Executable file
5
src/func/iso_create
Normal file → Executable file
@ -24,3 +24,8 @@ function iso_create() {
|
||||
|
||||
echo "done"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/iso_extract
Normal file → Executable file
5
src/func/iso_extract
Normal file → Executable file
@ -45,3 +45,8 @@ function iso_extract() {
|
||||
|
||||
echo "done"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/on_exit
Normal file → Executable file
5
src/func/on_exit
Normal file → Executable file
@ -27,3 +27,8 @@ function on_exit() {
|
||||
}
|
||||
exit $1
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
5
src/func/workspace_erase
Normal file → Executable file
5
src/func/workspace_erase
Normal file → Executable file
@ -12,3 +12,8 @@ function workspace_erase() {
|
||||
|
||||
echo "done"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
Reference in New Issue
Block a user