aboutsummaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
authorSébastien Luttringer <seblu@seblu.net>2012-03-12 22:50:42 +0100
committerSébastien Luttringer <seblu@seblu.net>2012-03-13 12:32:42 +0100
commit9f75591c8a56ba7ec1ea20cfe16dd10a83c65503 (patch)
tree0bd6ab03b6ef8e6dad4589ecd55e7f99e58857a9 /rc.d
parent788daea5db4445f02fc156132f00829e1107dc6f (diff)
downloadinitscripts-9f75591c8a56ba7ec1ea20cfe16dd10a83c65503.tar.xz
Remove NEED_ROOT crap
This patch revert patch 042d197b4d989ec64. NEED_ROOT was introduced to fix bug FS#24095. But in fact it doesn't solve it because nobody use it. The idea was to allow initscripts developper to have a check runned by every scripts which tell if scripts need to be run as root (most of them) or not (and the script check itself which part of him have to be run as root). All this to display a cute error message. I think this complexity is superfluous and let part of initscript will fail if rights are not enough. I must confess that we should have marked this bug as wontfix rather than do that. Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d1
1 files changed, 0 insertions, 1 deletions
diff --git a/rc.d b/rc.d
index 115dc05..0cfbdaf 100755
--- a/rc.d
+++ b/rc.d
@@ -1,6 +1,5 @@
#!/bin/bash
-NEED_ROOT=0 # this script can be run without be root
. /etc/rc.conf
. /etc/rc.d/functions