Opened 14 years ago
Closed 14 years ago
#127 closed enhancement (fixed)
update-smart-drivedb script haven't native FreeBSD's download program
Reported by: | alex-j | Owned by: | Christian Franke |
---|---|---|---|
Priority: | minor | Milestone: | Release 5.41 |
Component: | drivedb | Version: | 5.40 |
Keywords: | freebsd | Cc: |
Description
FreeBSD include in the base system native program for downloading that calls 'fetch'
suggestion to add this program to 'update-smart-drivedb'.
Patch attached.
===========================
diff --git a/update-smart-drivedb b/update-smart-drivedb
index b8d5505..32e0c6e 100755
--- a/update-smart-drivedb
+++ b/update-smart-drivedb
@@ -84,8 +84,10 @@ elif which wget >/dev/null 2>/dev/null; then
DOWNLOAD="wget $q"'-O "$DEST.new" "$SRC"'
elif which lynx >/dev/null 2>/dev/null; then
DOWNLOAD='lynx -source "$SRC" >"$DEST.new"'
+elif which fetch >/dev/null 2>/dev/null; then
+ DOWNLOAD='fetch -o "$DEST.new" "$SRC"'
else
- echo "$0: curl, wget or lynx not available" >&2; exit 1
+ echo "$0: curl, wget, fetch or lynx not available" >&2; exit 1
fi
# Try possible branch first, then trunk
===========================
Attachments (1)
Change History (5)
by , 14 years ago
Attachment: | update-smart-drivedb.patch added |
---|
follow-up: 2 comment:1 by , 14 years ago
Keywords: | fetch drivedb removed |
---|---|
Milestone: | Release 5.40.1 → Release 5.41 |
Owner: | changed from | to
Priority: | major → minor |
Status: | new → accepted |
comment:2 by , 14 years ago
Replying to chrfranke:
Is fetch(1) FreeBSD specific?
I know for sure (100%) that FreeBSD and DragonFlyBSD include fetch(1) in the base system.
Although, I'm not sure about NetBSD and OpenBSD, but as far as I know NetBSD has fetch API but doesn't have command-line utility.
I don't exactly know about OpenBSD either, because I used it a long time ago, but as far as I can remember they use wget.
comment:3 by , 14 years ago
Keywords: | freebsd added |
---|
Is fetch(1) FreeBSD specific?