#
###
+##
+# ATTENTION... THIS FUNCTINOS IS A BIG SECURITY HOLE
+# this function will be changed in future release
+##
# i don't want to write exit status controle stuff every time
function execute
{
local ret_=''
+ # NOT A GOOD IDEA
eval "$to_exec_"
ret_=$?
if [ -e "$file_to_test_" ]; then
if [ -z "$message_" ]; then
- $error_function_ "file does allready exist \"$file_to_test_\"" 67
+ $error_function_ "file does already exist \"$file_to_test_\"" 67
else
$error_function_ "$message_"
fi
checkId 0 "$1" "$2"
}
+function isGrml
+{
+ if [ -f /etc/grml_version ] ; then
+ dprint "isGrml(): this seems to be a grml system"
+ return 0
+ else
+ dprint "isGrml(): this is not a grml system"
+ return 1
+ fi
+}
function runsFromHd
{
function _createServiceFunctions
{
- for i in "start" "stop" "restart" "reload" "force-reload"; do
+ for i in "start" "stop" "restart" "reload"; do
eval "function ${i}Service { _touchService ${i} \"\$1\" \"\$2\" \"\$3\"; }"
done
+ eval "function forceReloadService { _touchService force-reload \"\$1\" \"\$2\" \"\$3\"; }"
}
_createServiceFunctions
# }}}