ALT Linux Bugzilla
– Attachment 1473 Details for
Bug 7768
/etc/rc.d/init.d/halt жестко завязан на raidtools
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Script for shutdown RAID drives
raidstop (text/plain), 791 bytes, created by
evseev
on 2006-05-02 02:39:53 MSD
(
hide
)
Description:
Script for shutdown RAID drives
Filename:
MIME Type:
Creator:
evseev
Created:
2006-05-02 02:39:53 MSD
Size:
791 bytes
patch
obsolete
>#!/bin/sh > >test -f /proc/mdstat || exit 1 >. /etc/init.d/functions > > ># Detect that this system uses RAID via raidtools > >RAIDSTOP=/sbin/raidstop >if [ ! -x "$RAIDSTOP" -o ! -f /etc/raidtab ]; then RAIDSTOP= ; fi > > ># Detect that this system uses RAID via mdadm > >MDADM= >for p in /sbin /usr/sbin; do > if [ -x "$p/mdadm" ]; then > MDADM="$p/mdadm" > break > fi >done >if [ -n "$MDADM" ]; then test -f "/etc/mdadm.conf" || MDADM= ; fi >if [ -n "$MDADM" ]; then grep -s '^[^#]' /etc/mdadm.conf | grep -qs '[^[:space:]]' || MDADM= ; fi >if [ -n "$MDADM" ]; then RAIDSTOP="$MDADM --stop" ; fi > > ># Let's do that job.. > >test -n "$RAIDSTOP" || exit 1 > >mddevs=$(grep ^md /proc/mdstat | awk '{ print $1 }') >for mddev in $mddevs ; do > action "Turning off RAID for $mddev:" $RAIDSTOP "/dev/$mddev" >done > >## EOF ##
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7768
: 1473