]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- assume rpm integrity
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 26 Mar 2007 13:07:42 +0000 (13:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- 754 already disallows execution
- quicker exit if nothing to be done

Changed files:
    rawdevices.init -> 1.9

rawdevices.init

index c41adfb69624724d923fc7d750a2f5f044a514eb..4dec68f6e619c81b7c61125654c8e62da2e1663a 100644 (file)
 #              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 @@ case "$1" in
        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
This page took 0.097513 seconds and 4 git commands to generate.