projects
/
grml-shlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed problem with bash as /bin/sh
[grml-shlib.git]
/
sh-lib
diff --git
a/sh-lib
b/sh-lib
index
9896f71
..
9330a5b
100644
(file)
--- a/
sh-lib
+++ b/
sh-lib
@@
-306,6
+306,16
@@
function checkRoot
checkId 0 "$1" "$2"
}
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 runsFromHd
{
@@
-608,7
+618,7
@@
function _touchService
function _createServiceFunctions
{
function _createServiceFunctions
{
- for i in "start" "stop" "restart" "reload" "force
-
reload"; do
+ for i in "start" "stop" "restart" "reload" "forcereload"; do
eval "function ${i}Service { _touchService ${i} \"\$1\" \"\$2\" \"\$3\"; }"
done
}
eval "function ${i}Service { _touchService ${i} \"\$1\" \"\$2\" \"\$3\"; }"
done
}