~computersforpeace/ubuntu/utopic/bcmwl/fix-for-1358966

« back to all changes in this revision

Viewing changes to debian/bcmwl-kernel-source.postinst

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-10-12 14:00:38 UTC
  • Revision ID: package-import@ubuntu.com-20121012140038-xl6ls1i42x9ipl6i
Tags: 5.100.82.112+bdcom-0ubuntu3
* debian/bcmwl-kernel-source.postinst: Mirror the actions of the installed
  modprobe.d files, i. e. rmmod the b43 driver and try to modprobe wl, so
  that this package works right after installation. (LP: #1065827)
* debian/bcmwl-kernel-source.postinst: Drop duplicate #DEBHELPER# token. It
  does not currently expand to anything, but it looks confusing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
CURRENT_KERNEL=$(uname -r)
11
11
BLACKLIST_FILE=/etc/modprobe.d/blacklist-bcm43.conf
12
12
PACKAGE_NAME=bcmwl
13
 
#DEBHELPER#
14
13
 
15
14
ARCH=`dpkg --print-architecture`
16
15
case $ARCH in
53
52
install wl modprobe -r b43 b44 b43legacy ssb; modprobe --ignore-install wl $CMDLINE_OPTS; modprobe --ignore-install b44
54
53
EOF
55
54
        fi
 
55
 
 
56
        # Try to use the module right away
 
57
        rmmod b43 b43legacy ssb bcm43xx brcm80211 brcmfmac brcmsmac bcma || :
 
58
        modprobe wl || :
56
59
        
57
60
        # Update initramfs
58
61
        update-initramfs -u