From 92ef85ff23d548f6dc9be3fb9b73a050f596941f Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 28 Jul 2011 14:21:07 +0200 Subject: NEED_ROOT: default to off This keeps the functionality, but disables it by default. Individual scripts/functions can turn it on if they want. Signed-off-by: Tom Gundersen --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index a35e45e..f42c21e 100644 --- a/functions +++ b/functions @@ -531,7 +531,7 @@ need_root() { # Quit script if it's not running by root # This can be disabled in scripts sourcing functions by setting NEED_ROOT=0 # A local call to need_root can be done to ensure part of script need root privilege -(( ${NEED_ROOT:-1} == 1 )) && need_root +(( ${NEED_ROOT:-0} == 1 )) && need_root # End of file # vim: set ts=2 sw=2 noet: -- cgit v1.2.3