diff options
Diffstat (limited to 'system/idle3-tools')
-rw-r--r-- | system/idle3-tools/README | 24 | ||||
-rw-r--r-- | system/idle3-tools/idle3-tools.SlackBuild | 22 |
2 files changed, 29 insertions, 17 deletions
diff --git a/system/idle3-tools/README b/system/idle3-tools/README index c7b720f8b8..c0d560d4e5 100644 --- a/system/idle3-tools/README +++ b/system/idle3-tools/README @@ -1,20 +1,22 @@ -Idle3-tools provides a linux/unix utility that can disable, get and set the -value of the infamous idle3 timer found on recent Western Digital Hard Disk -Drives. +Idle3-tools provides a linux/unix utility that can disable, get and +set the value of the infamous idle3 timer found on recent Western +Digital Hard Disk Drives. It can be used as an alternative to the official wdidle3.exe proprietary utility, without the need to reboot in a DOS environement. -A power off/on cycle of the drive will still be mandatory for new settings -to be taken into account. +A power off/on cycle of the drive will still be mandatory for new +settings to be taken into account. -Modern Western Digital "Green" Drives include the Intellipark feature that -stops the disk when not in use. Unfortunately, the default timer setting is -not perfect on linux/unix systems, including many NAS, and leads to a dramatic -increase of the Load Cycle Count value (SMART attribute #193). +Modern Western Digital "Green" Drives include the Intellipark feature +that stops the disk when not in use. Unfortunately, the default timer +setting is not perfect on linux/unix systems, including many NAS, +and leads to a dramatic increase of the Load Cycle Count value (SMART +attribute #193). Idle3-tools is an independant project, unrelated in any way to Western Digital Corp. -WARNING : THIS SOFTWARE IS EXPERIMENTAL AND NOT WELL TESTED. IT ACCESSES LOW -LEVEL INFORMATION OF YOUR HARDDRIVE. USE AT YOUR OWN RISK. +WARNING: THIS SOFTWARE IS EXPERIMENTAL AND NOT WELL TESTED. IT +ACCESSES LOW LEVEL INFORMATION OF YOUR HARDDRIVE. USE AT YOUR OWN +RISK. diff --git a/system/idle3-tools/idle3-tools.SlackBuild b/system/idle3-tools/idle3-tools.SlackBuild index 336455e06c..c46660c382 100644 --- a/system/idle3-tools/idle3-tools.SlackBuild +++ b/system/idle3-tools/idle3-tools.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for idle3-tools - This linux/unix utility can # be used to remove or set the infamous idle3 timer found on recent @@ -32,26 +32,36 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=idle3-tools VERSION=${VERSION:-0.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -97,4 +107,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |