Author: glen                         Date: Mon Mar 26 13:07:47 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- assume rpm integrity
- 754 already disallows execution
- quicker exit if nothing to be done

---- Files affected:
SOURCES:
   rawdevices.init (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/rawdevices.init
diff -u SOURCES/rawdevices.init:1.8 SOURCES/rawdevices.init:1.9
--- SOURCES/rawdevices.init:1.8 Sun Mar 25 01:21:31 2007
+++ SOURCES/rawdevices.init     Mon Mar 26 15:07:42 2007
@@ -10,18 +10,13 @@
 #              the file /etc/sysconfig/rawdevices.
 # config:      /etc/sysconfig/rawdevices
 
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-TEXTDOMAIN=initscripts
-
-[ -f /sbin/raw ] || exit 0
 [ -f /etc/sysconfig/rawdevices ] || exit 0
 
 # If the file just has the default comments, exit.
 grep -q -v "^#" /etc/sysconfig/rawdevices 2>/dev/null || exit 0
 
-PATH=/usr/bin:/bin:/usr/sbin:/sbin
+# Source function library.
+. /etc/rc.d/init.d/functions
 
 function assign_raw()
 {
@@ -81,13 +76,7 @@
        stop
        ;;
   status)
-       id=`id -u`
-       if [ "$id" -eq 0 ]; then
-               raw -qa
-       else
-               # don't remove the space at the end!!!
-               nls "You need to be root to use this command ! "
-       fi
+       raw -qa
        ;;
   restart|force-reload)
        stop
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rawdevices.init?r1=1.8&r2=1.9&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to