Last change
on this file since 2643 was 1983, checked in by Bruno Cornec, 16 years ago |
- Remove aux-tools dir in mindi (either scripts moved or removed)
- Remove isolinux and syslinux static files from mindi. Now generated
- Remove lilo support for ia32 now useless in mindi
- Remoce empty directories in rootfs in mindi
- Remove HackSyslinuxFile, CopyBootBFile, FindLiloBinary, FindSensibleBootBFile, MakeSyslinuxMessageFile, MakeLiloConfFile, ReplaceIndividualLine in mindi
- Adds a single MakeBootConfFile function to dynamiclly create needed conf files in mindi
- Avoids error messages when using only mindi with a non-existant /tmp/mondo-restore.cfg
|
-
Property svn:keywords
set to
Id
-
Property svn:unix-mode
set to
755
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | #echo "Optimize access to IDE drives? (Type 'YES' or just press <enter>)"
|
---|
| 4 | #echo "Warning - this can result in filesystem corruption."
|
---|
| 5 | #read response
|
---|
| 6 | #if [ "$response" = "YES" ] || [ "$response" = "yes" ] ; then
|
---|
| 7 | > /tmp/oid.log
|
---|
| 8 | echo -e -n "Optimizing IDE drive access..."
|
---|
| 9 |
|
---|
| 10 | cdrom_lives_here=`cat /tmp/CDROM-LIVES-HERE`
|
---|
| 11 | if [ "$?" -ne "0" ] ; then
|
---|
| 12 | echo "I don't know where the CDROM lives. Optimization cancelled."
|
---|
| 13 | exit 1
|
---|
| 14 | fi
|
---|
| 15 |
|
---|
| 16 | for dev in hda hdb hdc hdd hde hdf hdg hdh ; do
|
---|
| 17 | echo " " > /tmp/oid1.log
|
---|
| 18 | if [ "$cdrom_lives_here" = "$dev" ] ; then
|
---|
| 19 | # -c 1
|
---|
[1983] | 20 | hdparm -u 1 -d 1 /dev/$dev > /tmp/oid1.log 2> /dev/null
|
---|
[1] | 21 | else
|
---|
| 22 | # -X34 -X66
|
---|
[1983] | 23 | hdparm -u1 -d1 -c1 -m8 -W1 /dev/$dev > /tmp/oid1.log 2> /dev/null
|
---|
[1] | 24 | fi
|
---|
| 25 | cat /tmp/oid1.log >> /tmp/oid.log
|
---|
| 26 | done
|
---|
| 27 | echo "Done. See /tmp/oid.log for logs."
|
---|
| 28 | #else
|
---|
| 29 | # echo "Fair enough. I shan't optimize IDE access."
|
---|
| 30 | #fi
|
---|
| 31 |
|
---|
[1983] | 32 | echo "'ide-opt' has tried to optimize IDE access. If you saw lots of warnings,"
|
---|
| 33 | echo "optimization failed (not important, really); otherwise, it succeeded."
|
---|
[1] | 34 |
|
---|
| 35 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.