Browse Source

Add SLACK_VER

Georgi Chorbadzhiyski 21 years ago
parent
commit
0a57dcf58b
1 changed files with 14 additions and 7 deletions
  1. 14
    7
      config.sh

+ 14
- 7
config.sh View File

@@ -1,16 +1,19 @@
1 1
 #!/bin/sh
2 2
 # SlackCheck configuration file
3 3
 #
4
-# $Id: config.sh,v 1.4 2003/03/09 22:36:13 gf Exp $
4
+# $Id: config.sh,v 1.5 2003/04/08 12:05:06 gf Exp $
5 5
 #
6 6
 
7 7
 PATH="/bin:/usr/bin:/usr/local/bin"
8 8
 
9
+# Can be 8.1, 9.0 or current
10
+SLACK_VER="current"
11
+
9 12
 # Where to look for upgrades
10
-DL_HOST="http://mirrors.unixsol.org/slackware/slackware-current/slackware"
11
-#DL_HOST="http://www.slackware.at/data/slackware-current/slackware"
12
-#DL_HOST="http://ftp.planetmirror.com/pub/slackware/slackware-current/slackware"
13
-#DL_HOST="ftp://ftp.slackware.com/pub/slackware/slackware-current/slackware"
13
+DL_HOST="http://mirrors.unixsol.org/slackware/slackware-${SLACK_VER}/slackware"
14
+#DL_HOST="http://www.slackware.at/data/slackware-${SLACK_VER}/slackware"
15
+#DL_HOST="http://ftp.planetmirror.com/pub/slackware/slackware-${SLACK_VER}/slackware"
16
+#DL_HOST="ftp://ftp.slackware.com/pub/slackware/slackware-${SLACK_VER}/slackware"
14 17
 
15 18
 # Set variable to "0" if you dont want some of the functionality
16 19
 
@@ -31,13 +34,17 @@ SMART_UPGRADE="1"         # When lilo-* or kernel-* packages are updated run
31 34
 
32 35
 # This program will be used to download files from web
33 36
 DL_PRG="wget"
34
-DL_PRG_OPTS="-nv"
37
+
38
+# Non-verbose mode of the new wget is fucked up. It shows what is downloaded
39
+# after finishing the download and I think thats very irritating
40
+#DL_PRG_OPTS="-nv"
35 41
 
36 42
 # Used for ftp downloads
37 43
 echo $DL_HOST | grep ^ftp://
38 44
 if [ $? = 0 ]; then
39 45
 	DL_PRG="wget"
40
-	DL_PRG_OPTS="-nv --passive"
46
+	DL_PRG_OPTS="--passive"
47
+#	DL_PRG_OPTS="-nv --passive"
41 48
 fi
42 49
 
43 50
 # These programs will be used in collection and updating hosts

Loading…
Cancel
Save