X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=functions.sh;h=fe93a167e81185bb0bb8f3caea518f11183ac764;hb=2a647ae933cc6284c31276ad345a772e7cab472d;hp=a818b344f13a56608a71a26a90612849f45c0dae;hpb=47bfffe0e4366b8640f721726ee649841daacd15;p=carnet-tools-cn.git diff --git a/functions.sh b/functions.sh index a818b34..fe93a16 100644 --- a/functions.sh +++ b/functions.sh @@ -317,19 +317,3 @@ cp_db_get() { esac fi } - -# by ddzeko, Tue, 05 Apr 2005 15:47:37 +0200 -# - check is the script run by effective root -cp_check_root() { - local euid - euid=`awk 'BEGIN{print PROCINFO["euid"]}'` - case "$euid" in - 0) RET=y - return 0 ;; - ?*) RET=n - return 1 ;; - *) RET="" - echo "cp_check_root: cannot determine euid" 2>&1 - ;; - esac -}