Update of /cvsroot/fink/pdb
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv13974

Modified Files:
        update-active.sh 
Log Message:
use ionice, and check for root

Index: update-active.sh
===================================================================
RCS file: /cvsroot/fink/pdb/update-active.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update-active.sh    4 Dec 2007 22:54:23 -0000       1.1
+++ update-active.sh    5 Dec 2007 18:48:03 -0000       1.2
@@ -1,5 +1,14 @@
 #!/bin/sh
 
+COMMAND="./create-finkdb.pl"
+if [ `/usr/bin/id -un` != "root" ]; then
+       echo "you must run this script as root!"
+       exit 1
+fi
+if [ -x "/usr/bin/ionice" ]; then
+       COMMAND="/usr/bin/ionice -c3 $COMMAND"
+fi
+
 for dist in \
        10.3-powerpc-current-stable \
        10.3-powerpc-current-unstable \
@@ -12,5 +21,5 @@
        10.5-i386-current-stable \
        10.5-i386-current-unstable \
        ; do
-       ./create-finkdb.pl --start-at $dist --end-at $dist "$@"
+       $COMMAND --start-at $dist --end-at $dist "$@"
 done


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to