Last change
on this file since 2823 was 2594, checked in by Bruno Cornec, 14 years ago |
r3735@localhost: bruno | 2010-03-14 19:50:12 +0100
- Avoids remaining error messages at restore time in new mindi
- Adapt group file to include latest one needed by udev
- Explicitely add a dep on libnss_files.so.2 needed for uid resolution at restore time
|
-
Property svn:keywords
set to
Id
-
Property svn:unix-mode
set to
755
|
File size:
744 bytes
|
Rev | Line | |
---|
[1] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
[2594] | 3 | > /tmp/oid.log
|
---|
| 4 | echo -e -n "Optimizing IDE drive access..."
|
---|
[1] | 5 |
|
---|
[2594] | 6 | cdrom_lives_here=`cat $MINDI_CACHE/CDROM-LIVES-HERE 2> /dev/null`
|
---|
| 7 | if [ "$?" -ne "0" ] ; then
|
---|
[1] | 8 | echo "I don't know where the CDROM lives. Optimization cancelled."
|
---|
| 9 | exit 1
|
---|
[2594] | 10 | fi
|
---|
[1] | 11 |
|
---|
[2594] | 12 | for dev in hda hdb hdc hdd hde hdf hdg hdh ; do
|
---|
[1] | 13 | echo " " > /tmp/oid1.log
|
---|
| 14 | if [ "$cdrom_lives_here" = "$dev" ] ; then
|
---|
[2594] | 15 | hdparm -u 1 -d 1 /dev/$dev > /tmp/oid1.log 2> /dev/null
|
---|
[1] | 16 | else
|
---|
[2594] | 17 | hdparm -u1 -d1 -c1 -m8 -W1 /dev/$dev > /tmp/oid1.log 2> /dev/null
|
---|
[1] | 18 | fi
|
---|
| 19 | cat /tmp/oid1.log >> /tmp/oid.log
|
---|
[2594] | 20 | done
|
---|
| 21 | echo "Done. See /tmp/oid.log for logs."
|
---|
[1] | 22 |
|
---|
[1983] | 23 | echo "'ide-opt' has tried to optimize IDE access. If you saw lots of warnings,"
|
---|
| 24 | echo "optimization failed (not important, really); otherwise, it succeeded."
|
---|
[1] | 25 |
|
---|
| 26 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.