0
ˆ
905_•I|¥‰ÓMdœv ©ƒ&íK<óo¬ÆÅ ‰
Index of /FSS-BCZ/root/lib/rpm/platform/sh-linux
Index of /FSS-BCZ/root/lib/rpm/platform/sh-linux
; ˆl–äY>”ÊC]ŠqAã.ÜmÕ1hßÉ
„/<ßÈa–ß=¿JJj"Tâ€zàp@S�ÿÇ ?÷ #!/usr/bin/sh
#
# smartmontools drive database update script
#
# Home page of code is: https://www.smartmontools.org
#
# Copyright (C) 2010-20 Christian Franke
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# $Id: update-smart-drivedb.in 5153 2020-12-30 14:09:46Z chrfranke $
#
set -e
# Set by config.status
export PATH="/usr/local/bin:/usr/bin:/bin"
PACKAGE="smartmontools"
VERSION="7.2"
prefix="/usr"
exec_prefix="/usr"
sbindir="/usr/sbin"
datarootdir="${prefix}/share"
datadir="/usr/share"
drivedbdir="${datadir}/${PACKAGE}"
# Download tools
os_dltools="curl wget lynx svn"
# drivedb.h update branch
BRANCH="RELEASE_7_2_DRIVEDB"
# Default drivedb location
DRIVEDB="$drivedbdir/drivedb.h"
# GnuPG used to verify signature (disabled if empty)
GPG="gpg"
# Smartctl used for syntax check
SMARTCTL="$sbindir/smartctl"
# PATH information for help and error messages
#pathinfo='$PATH'
pathinfo="'$PATH'"
myname=$0
usage()
{
pathinfo="
$pathinfo"
cat <&2
exit 1
}
err_notfound()
{
case $1 in
*/*) error "$1: not found $2" ;;
*) error "$1: not found in $pathinfo $2" ;;
esac
}
warning()
{
echo "$myname: (Warning) $*" >&2
}
selecturl()
{
case $1 in
github) # https://github.com/smartmontools/smartmontools/raw/origin/$BRANCH/smartmontools/drivedb.h
# https://github.com/smartmontools/smartmontools/raw/master/smartmontools/drivedb.h
# redirected to:
url='https://raw.githubusercontent.com/smartmontools/smartmontools/master/smartmontools/drivedb.h' ;;
sf) url='https://sourceforge.net/p/smartmontools/code/HEAD/tree/trunk/smartmontools/drivedb.h?format=raw' ;;
svn) url='https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools/drivedb.h' ;;
svni) url='http