summaryrefslogtreecommitdiffstats
path: root/cholerab
diff options
context:
space:
mode:
authortv <tv@also>2011-08-04 17:34:14 +0200
committertv <tv@also>2011-08-04 17:34:14 +0200
commitedb9685e0dac1145187f18915da17a6feb3e0c5f (patch)
treeeb4ab7dea382ea86ca52b36c479993154cc7abfa /cholerab
parentf1321f298130f3ec4727851761135084976ea614 (diff)
parent6cf65628ec3292074872c67b4471372f3526afb3 (diff)
Merge branch 'master' of github.com:/krebscode/cholerab
Diffstat (limited to 'cholerab')
-rw-r--r--cholerab/enterprise/README11
1 files changed, 6 insertions, 5 deletions
diff --git a/cholerab/enterprise/README b/cholerab/enterprise/README
index cf54c1e9..03c1c068 100644
--- a/cholerab/enterprise/README
+++ b/cholerab/enterprise/README
@@ -16,8 +16,9 @@ Enterprise Installation
Rebooting
----------
-Enterprise Einschalter
---------------------
+Enterprise Einschalter (eon)
+----------------------------
+Device that turns something on as soon as possible.
Supernintendo Pattern
---------------------
@@ -26,10 +27,10 @@ Enterprise Root
---------------
scripts which need root access but are called with lower privileges. The Enterprise Root Pattern provides a Solution for this issue by calling the script itself as sudo.
<code>
-if [ ! `id -u` -eq "0" ]
-then
- echo "not root, trying sudo"
+if test "${nosudo-false}" != true -a `id -u` != 0; then
+ echo "we're going sudo..." >&2
exec sudo "$0" "$@"
+ exit 23 # go to hell
fi
</script> // enterprise ist, wenn <code> ... </script> trotzdem matcht