Fix rootperm target because on DLD id does not understand -u

This commit is contained in:
Fritz Elfert 1997-03-24 02:29:55 +00:00
parent 3fbb1622e4
commit 33cd34c0f9
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ modules: $(KERNELDIR)/include/linux/version.h
done
rootperm:
@if [ `id -u` != 0 ] ; then \
@echo 'main(int argc,char**argv){unlink(argv[0]);return(getuid()==0);}'>g
@if gcc -x c -o G g && rm -f g && ./G ; then \
echo -e "\n\n Need root permission for installation!\n\n"; \
exit 1; \
fi