export more functions (can be used un subshell or interactive internal shell)
This commit is contained in:
@@ -28,6 +28,7 @@ exec_serv()
|
|||||||
prnt I "Lancement de la commande $command du services $svcname"
|
prnt I "Lancement de la commande $command du services $svcname"
|
||||||
$lineexec
|
$lineexec
|
||||||
}
|
}
|
||||||
|
export exec_serv
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ Fichiers de configuration :
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
export -f disp_help
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
@@ -85,6 +86,7 @@ show_version()
|
|||||||
echo -e "\n${BYellow}Attention :$DEFAULTCOL Ce script requiert les droits d'administration pour fonctionner."
|
echo -e "\n${BYellow}Attention :$DEFAULTCOL Ce script requiert les droits d'administration pour fonctionner."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
export -f show_version
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
@@ -93,6 +95,7 @@ get_mod_name()
|
|||||||
{
|
{
|
||||||
echo $(basename $1 | cut -f 1 -d '.')
|
echo $(basename $1 | cut -f 1 -d '.')
|
||||||
}
|
}
|
||||||
|
export -f get_mod_name
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ load_configuration()
|
|||||||
}
|
}
|
||||||
export -f load_configuration
|
export -f load_configuration
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Do deeper command line analysis to detect unconsistancies
|
# Do deeper command line analysis to detect unconsistancies
|
||||||
process_commandline_and_vars()
|
process_commandline_and_vars()
|
||||||
@@ -196,4 +197,3 @@ process_commandline_and_vars()
|
|||||||
export -f process_commandline_and_vars
|
export -f process_commandline_and_vars
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user