From 9a46479961a6eb472c6924439e81a4adf15dc64b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 26 Mar 2007 13:07:42 +0000 Subject: [PATCH] - assume rpm integrity - 754 already disallows execution - quicker exit if nothing to be done Changed files: rawdevices.init -> 1.9 --- rawdevices.init | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/rawdevices.init b/rawdevices.init index c41adfb..4dec68f 100644 --- a/rawdevices.init +++ b/rawdevices.init @@ -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 @@ 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 -- 2.44.0