aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-08-18 21:25:14 +0000
committerBill Nottingham <notting@redhat.com>2004-08-18 21:25:14 +0000
commit56abe3867fbded758066888e9d7ba5923c0b0d35 (patch)
tree847fb7b89b192d61fe25c45dabdb9965423eff00 /rc.d
parent0e8313bc9cadd75426f5591a1a4114700a20ac52 (diff)
downloadinitscripts-56abe3867fbded758066888e9d7ba5923c0b0d35.tar
initscripts-56abe3867fbded758066888e9d7ba5923c0b0d35.tar.gz
initscripts-56abe3867fbded758066888e9d7ba5923c0b0d35.tar.bz2
initscripts-56abe3867fbded758066888e9d7ba5923c0b0d35.tar.xz
initscripts-56abe3867fbded758066888e9d7ba5923c0b0d35.zip
remove rawdevices (#130048)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/rawdevices77
1 files changed, 0 insertions, 77 deletions
diff --git a/rc.d/init.d/rawdevices b/rc.d/init.d/rawdevices
deleted file mode 100755
index e0639279..00000000
--- a/rc.d/init.d/rawdevices
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/bash
-#
-# rawdevices This shell script assignes rawdevices to block devices
-#
-# chkconfig: 345 56 44
-# description: This scripts assignes raw devices to block devices \
-# (such as hard drive partitions). This is for the use \
-# of applications such as Oracle. You can set up the \
-# raw device to block device mapping by editing \
-# the file /etc/sysconfig/rawdevices.
-# config: /etc/sysconfig/rawdevices
-
-[ -f /usr/bin/raw ] || exit 0
-[ -f /etc/sysconfig/rawdevices ] || exit 0
-# Exit if the file just has the default comments.
-LC_ALL=C /bin/egrep -q -v "^ *#" /etc/sysconfig/rawdevices 2>/dev/null || exit 0
-
-. /etc/init.d/functions
-
-function assign_raw()
-{
- LC_ALL=C egrep -v '^ *#' /etc/sysconfig/rawdevices |
- while read RAW BLOCK; do
- if [ -n "$RAW" -a -n "$BLOCK" ]; then
- rawdirname=${RAW%/*}
- if [ "$rawdirname" = "/dev" -a -d /dev/raw ]; then
- echo $" Please correct your /etc/sysconfig/rawdevices:"
- echo $" rawdevices are now located in the directory /dev/raw/ "
- echo $" If the command 'raw' still refers to /dev/raw as a file."
- echo $" you'll have to upgrade your util-linux package"
- exit 0
- fi
- if [ "$rawdirname" = "/dev/raw" -a -f /dev/raw ]; then
- echo $" Please correct your /etc/sysconfig/rawdevices:"
- echo $" rawdevices are now located in the directory /dev/raw/ "
- echo $" If the command 'raw' still refers to /dev/raw as a file."
- echo $" you'll have to upgrade your util-linux package"
- exit 0
- fi
-
- echo " $RAW --> $BLOCK";
- raw $RAW $BLOCK
- fi
- done
-}
-
-# See how we were called.
-case "$1" in
- start)
- # Assign devices
- echo $"Assigning devices: "
- assign_raw
- echo $"done"
- ;;
- stop)
- # No action to be taken here
- ;;
-
- status)
- ID=`id -u`
- if [ $ID -eq 0 ]; then
- raw -qa
- else
- echo $"You need to be root to use this command ! "
- fi
- ;;
-
- restart|reload)
- $0 start
- ;;
-
- *)
- echo $"Usage: $0 {start|stop|status|restart}"
- exit 1
-esac
-
-exit 0