diff options
author | Bill Nottingham <notting@redhat.com> | 2004-10-14 04:43:22 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-10-14 04:43:22 +0000 |
commit | 7d54d8d8d3ff4430323f97bfe0067360a1ff8fc5 (patch) | |
tree | d9a6eafe9da8940b4be755072e837808bff1a4e5 | |
parent | fb412d679d12f6c89a4fb518ba74aa92cfc84dda (diff) | |
download | initscripts-7d54d8d8d3ff4430323f97bfe0067360a1ff8fc5.tar initscripts-7d54d8d8d3ff4430323f97bfe0067360a1ff8fc5.tar.gz initscripts-7d54d8d8d3ff4430323f97bfe0067360a1ff8fc5.tar.bz2 initscripts-7d54d8d8d3ff4430323f97bfe0067360a1ff8fc5.tar.xz initscripts-7d54d8d8d3ff4430323f97bfe0067360a1ff8fc5.zip |
remove rawdevices again
-rw-r--r-- | initscripts.spec | 7 | ||||
-rwxr-xr-x | rc.d/init.d/rawdevices | 80 | ||||
-rw-r--r-- | sysconfig/rawdevices | 8 |
3 files changed, 4 insertions, 91 deletions
diff --git a/initscripts.spec b/initscripts.spec index ddf13be8..2371aa4e 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -76,7 +76,6 @@ chmod 664 /var/log/wtmp /var/run/utmp /sbin/chkconfig --add netfs /sbin/chkconfig --add network -/sbin/chkconfig --add rawdevices # handle serial installs semi gracefully if [ $1 = 0 ]; then @@ -101,13 +100,16 @@ fi if [ $1 = 0 ]; then /sbin/chkconfig --del netfs /sbin/chkconfig --del network - /sbin/chkconfig --del rawdevices fi %triggerun -- initscripts <= 7.59 /sbin/chkconfig --del random exit 0 +%triggerun -- initscripts < 7.62 +/sbin/chkconfig --del rawdevices +exit 0 + %clean rm -rf $RPM_BUILD_ROOT @@ -126,7 +128,6 @@ rm -rf $RPM_BUILD_ROOT %dir /etc/sysconfig/networking/devices %dir /etc/sysconfig/networking/profiles %dir /etc/sysconfig/networking/profiles/default -%config(noreplace) /etc/sysconfig/rawdevices %config /etc/sysconfig/network-scripts/network-functions %config /etc/sysconfig/network-scripts/network-functions-ipv6 %config /etc/sysconfig/network-scripts/init.ipv6-global diff --git a/rc.d/init.d/rawdevices b/rc.d/init.d/rawdevices deleted file mode 100755 index 67954d17..00000000 --- a/rc.d/init.d/rawdevices +++ /dev/null @@ -1,80 +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. Note that the use \ -# of raw devices is deprecated, and applications should \ -# open regular block devices with O_DIRECT instead. -# -# 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 diff --git a/sysconfig/rawdevices b/sysconfig/rawdevices deleted file mode 100644 index 69360f0e..00000000 --- a/sysconfig/rawdevices +++ /dev/null @@ -1,8 +0,0 @@ -# This file and interface are deprecated. -# Applications needing raw device access should open regular -# block devices with O_DIRECT. -# raw device bindings -# format: <rawdev> <major> <minor> -# <rawdev> <blockdev> -# example: /dev/raw/raw1 /dev/sda1 -# /dev/raw/raw2 8 5 |