slitaz-tools rev 206
subox: do not ask root passwd when we are root
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 22 20:39:46 2008 +0000 (2008-05-22) |
parents | c03dd105a2a2 |
children | 37ac5a2b6e88 |
files | tinyutils/subox |
line diff
1.1 --- a/tinyutils/subox Thu May 22 14:10:26 2008 +0000 1.2 +++ b/tinyutils/subox Thu May 22 20:39:46 2008 +0000 1.3 @@ -12,6 +12,9 @@ 1.4 exit 0 1.5 fi 1.6 1.7 +# Nothing to do if we are root 1.8 +test $(id -u) = 0 && exec $1 1.9 + 1.10 # Keep binary name in a tmp file to be used by SU_DIALOG. 1.11 echo "$1" > /tmp/subox-exec 1.12