aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/rawdevices
diff options
context:
space:
mode:
authorFlorian La Roche <laroche@redhat.com>2002-06-26 09:20:01 +0000
committerFlorian La Roche <laroche@redhat.com>2002-06-26 09:20:01 +0000
commit4b23ce56fb9035cc129d96b1ffe85d40c53dc5f6 (patch)
tree0ab8b4cdcb4aef2a9f630fd645ddd31e29bb3cf9 /rc.d/init.d/rawdevices
parent39aa2c790f150cfc31fd59028c9cc397a7b9c8c9 (diff)
downloadinitscripts-4b23ce56fb9035cc129d96b1ffe85d40c53dc5f6.tar
initscripts-4b23ce56fb9035cc129d96b1ffe85d40c53dc5f6.tar.gz
initscripts-4b23ce56fb9035cc129d96b1ffe85d40c53dc5f6.tar.bz2
initscripts-4b23ce56fb9035cc129d96b1ffe85d40c53dc5f6.tar.xz
initscripts-4b23ce56fb9035cc129d96b1ffe85d40c53dc5f6.zip
- further cleanups
Diffstat (limited to 'rc.d/init.d/rawdevices')
-rwxr-xr-xrc.d/init.d/rawdevices10
1 files changed, 3 insertions, 7 deletions
diff --git a/rc.d/init.d/rawdevices b/rc.d/init.d/rawdevices
index 1bde3233..2d9d2cfb 100755
--- a/rc.d/init.d/rawdevices
+++ b/rc.d/init.d/rawdevices
@@ -10,18 +10,14 @@
# the file /etc/sysconfig/rawdevices.
# config: /etc/sysconfig/rawdevices
-# Source function library.
-. /etc/init.d/functions
-
-TEXTDOMAIN=initscripts
+PATH=/usr/bin:/bin:/usr/sbin:/sbin
[ -f /usr/bin/raw ] || exit 0
[ -f /etc/sysconfig/rawdevices ] || exit 0
-
-# If the file just has the default comments, exit.
+# Exit if the file just has the default comments.
grep -q -v "^#" /etc/sysconfig/rawdevices 2>/dev/null || exit 0
-PATH=/usr/bin:/bin:/usr/sbin:/sbin
+. /etc/init.d/functions
function assign_raw()
{