patches/nicdrv-11-jmge.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 1698 831894410112
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1698
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     1
--- jmge-2.6.1.orig/adddrv.sh	2009-01-01 08:34:22.000000000 -0500
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     2
+++ jmge-2.6.1/adddrv.sh	2009-02-20 00:30:00.037559361 -0500
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     3
@@ -6,29 +6,5 @@
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     4
 set DEVLIST = ($DEVLIST '"pciex197b,250"')	# JMC250
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     5
 set DEVLIST = ($DEVLIST '"pciex197b,260"')	# JMC260
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     6
 
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     7
-#echo $DEVLIST
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     8
-
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     9
-set DEVLIST2 = ( )
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    10
-foreach i ($DEVLIST)
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    11
-	set pcidev = `grep $i /etc/driver_aliases`
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    12
-	echo $pcidev
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    13
-	if ("$pcidev" == "") then
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    14
-		set DEVLIST2 = ( $DEVLIST2 "$i" )
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    15
-	endif
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    16
-end
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    17
-
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    18
-#echo $DEVLIST2
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    19
-if ("$DEVLIST2" == "") then
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    20
-	echo nothing to do.
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    21
-	exit 1
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    22
-endif
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    23
-
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    24
-set existing = `grep "jmge " /etc/driver_aliases`
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    25
-#echo $existing
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    26
-
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    27
-if ("$existing" == "") then
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    28
-	/usr/sbin/add_drv -n -v -m '* 0600 root sys' -i "$DEVLIST2" jmge
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    29
-else 
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    30
-	/usr/sbin/update_drv -a -v -m '* 0600 root sys' -i "$DEVLIST2" jmge
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    31
-endif
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    32
+/usr/sbin/add_drv -n -v -m '* 0600 root sys' -i "$DEVLIST" jmge
831894410112 2009-02-21 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    33
 sync